]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: st: st_pctl_dt_parse_groups simplify expression
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 5 Nov 2016 14:35:15 +0000 (15:35 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Nov 2016 13:18:03 +0000 (14:18 +0100)
commita0a81a8fe93e9c4cfc66cdc3f999d6c489cb4ab4
treefa75ff897af3d093d16587a45e0d0f3b4bd22f66
parentb447e7e853ba6ebefc15c4d02deaabf012367f09
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 <xypron.glpk@gmx.de>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-st.c