OSDN Git Service

backlight: tps65217_bl: Remove unnecessary default brightness check
authorChristos Gkekas <chris.gekas@gmail.com>
Sun, 8 Oct 2017 21:56:48 +0000 (22:56 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 13 Oct 2017 09:41:31 +0000 (10:41 +0100)
commit5158cc2d4eca66c1c5ef1939d8fa02942f532515
tree5e0f946a8da8ec1c868d776a2df816791d70b8ab
parent5d0c49acebc9488e37db95f1d4a55644e545ffe7
backlight: tps65217_bl: Remove unnecessary default brightness check

Variable val holds the default brightness and is unsigned, therefore
checking whether it is less than zero is redundant.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/tps65217_bl.c