Re: [PATCH 1/1] pinctrl: st: st_pctl_dt_parse_groups simplify expression

2016-11-08 Thread Linus Walleij
On Sat, Nov 5, 2016 at 3:35 PM, Heinrich Schuchardt wrote: > 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 Patch applied with Patrice's ACK. Yours, Linus Walleij

Re: [PATCH 1/1] pinctrl: st: st_pctl_dt_parse_groups simplify expression

2016-11-07 Thread Patrice Chotard
On 11/05/2016 03:35 PM, Heinrich Schuchardt wrote: > 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 > --- > drivers/pinctrl/pinctrl-st.c | 2 +- > 1 file changed, 1 insertion(+), 1 deleti

[PATCH 1/1] pinctrl: st: st_pctl_dt_parse_groups simplify expression

2016-11-05 Thread Heinrich Schuchardt
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 --- drivers/pinctrl/pinctrl-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/