backlight: lm3630a: fix dts error checking
This commit is contained in:
parent
a691c1f694
commit
ba9ff2442e
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ static int lm3630a_parse_bank(struct lm3630a_platform_data *pdata,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!current_index){
|
if (current_index == -1){
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue