thermal/drivers/hwmon: Cleanup coding style a bit
authorBernard Zhao <bernard@vivo.com>
Mon, 2 Nov 2020 02:31:21 +0000 (18:31 -0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 12 Nov 2020 10:24:01 +0000 (11:24 +0100)
commit030a48b0f6ce393d78b8d33debb1e2043b8cc156
treeed33ab3486f1625b282093aa38a4d6aa903b3818
parente01aac535353e013f9a5c9675232458906b895da
thermal/drivers/hwmon: Cleanup coding style a bit

Function thermal_add_hwmon_sysfs, hwmon will be NULL when
new_hwmon_device = 0, so there is no need to check, kfree will
handle NULL point.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201102023121.3312-1-bernard@vivo.com
drivers/thermal/thermal_hwmon.c