backlight: lm3630a: fix dts error checking

This commit is contained in:
Maximilian Weigand 2023-08-01 21:36:02 +02:00 committed by Antoine Martin
parent a691c1f694
commit ba9ff2442e

View file

@ -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) {