]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: sun8i: Fix using plain integer as NULL pointer in sun8i_ths_resource_init
authorYangtao Li <tiny.windzz@gmail.com>
Sun, 12 Jan 2020 17:13:18 +0000 (17:13 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 10:41:08 +0000 (11:41 +0100)
commit501f3e69eccc980ba843724ac2a0d1bc82ee4e7c
tree04115cc8bd81850a97d8b7c9e043f21fc4f1aad3
parentc1a4af6bfb8afc4b423aeecadaa1b3da7f1e3a2f
thermal: sun8i: Fix using plain integer as NULL pointer in sun8i_ths_resource_init

sparse returns a warning:

"drivers/thermal/sun8i_thermal.c:341:60: sparse: sparse: Using plain
integer as NULL pointer".

Fix it by replacing the zero integer by a NULL pointer.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200112171318.23025-1-tiny.windzz@gmail.com
drivers/thermal/sun8i_thermal.c