mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Acked-by: Daniel Thompson <[email protected]> Acked-by: Jingoo Han <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
5d0c49aceb
commit
5158cc2d4e
1 changed files with 1 additions and 2 deletions
|
|
@ -239,8 +239,7 @@ tps65217_bl_parse_dt(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
if (!of_property_read_u32(node, "default-brightness", &val)) {
|
||||
if (val < 0 ||
|
||||
val > 100) {
|
||||
if (val > 100) {
|
||||
dev_err(&pdev->dev,
|
||||
"invalid 'default-brightness' value in the device tree\n");
|
||||
err = ERR_PTR(-EINVAL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue