android_kernel_samsung_a7y1.../drivers/video
Nathan Chancellor fdff81142d backlight: lm3639: Unconditionally call led_classdev_unregister
[ Upstream commit 7cea645ae9c5a54aa7904fddb2cdf250acd63a6c ]

Clang warns that the address of a pointer will always evaluated as true
in a boolean context.

drivers/video/backlight/lm3639_bl.c:403:14: warning: address of
'pchip->cdev_torch' will always evaluate to 'true'
[-Wpointer-bool-conversion]
        if (&pchip->cdev_torch)
        ~~   ~~~~~~~^~~~~~~~~~
drivers/video/backlight/lm3639_bl.c:405:14: warning: address of
'pchip->cdev_flash' will always evaluate to 'true'
[-Wpointer-bool-conversion]
        if (&pchip->cdev_flash)
        ~~   ~~~~~~~^~~~~~~~~~
2 warnings generated.

These statements have been present since 2012, introduced by
commit 0f59858d5119 ("backlight: add new lm3639 backlight
driver"). Given that they have been called unconditionally since
then presumably without any issues, removing the always true if
statements to fix the warnings without any real world changes.

Link: https://github.com/ClangBuiltLinux/linux/issues/119
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:33:07 +02:00
..
adf A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
backlight backlight: lm3639: Unconditionally call led_classdev_unregister 2020-04-07 12:33:07 +02:00
console A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fbdev fbdev: sbuslib: integer overflow in sbusfb_ioctl_helper() 2020-04-07 12:33:01 +02:00
logo A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
display_timing.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hdmi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
of_display_timing.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
of_videomode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vgastate.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videomode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30