mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
pinctrl: st: st_pctl_dt_parse_groups simplify expression
for_each_property_of_node(pins, pp) checks that pp is not NULL. So there is no need to check it inside the loop. Signed-off-by: Heinrich Schuchardt <[email protected]> Acked-by: Patrice Chotard <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
fdcf83552a
commit
95bdb0ea36
1 changed files with 1 additions and 1 deletions
|
|
@ -1181,7 +1181,7 @@ static int st_pctl_dt_parse_groups(struct device_node *np,
|
|||
if (!strcmp(pp->name, "name"))
|
||||
continue;
|
||||
|
||||
if (pp && (pp->length/sizeof(__be32)) >= OF_GPIO_ARGS_MIN) {
|
||||
if (pp->length / sizeof(__be32) >= OF_GPIO_ARGS_MIN) {
|
||||
npins++;
|
||||
} else {
|
||||
pr_warn("Invalid st,pins in %s node\n", np->name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue