pinctrl: baytrail: Drop duplicate return statement
Subsystems (3)
PATCH 1/1 pinctrl: baytrail: Drop duplicate return statement
No need to repeat 'return ret;' inside and outside conditional. Just use one outside conditional for both cases.
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/pinctrl/intel/pinctrl-baytrail.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/pinctrl/intel/pinctrl-baytrail.c +1 -3
@@ -1535,10 +1535,8 @@ static int byt_gpio_probe(struct intel_pinctrl *vg) } ret =devm_gpiochip_add_data (vg->dev, gc, vg); -if (ret) { +if (ret)dev_err (vg->dev,"failed adding byt-gpio chip\n" ); -return ret; - }return ret; }
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Quoted 4 lines · Andy Shevchenko
No need to repeat 'return ret;' inside and outside conditional. Just use one outside conditional for both cases.
Signed-off-by Andy Shevchenko <[email protected]>
Acked-by Mika Westerberg <[email protected]>
Quoted 7 lines · Mika Westerberg
Quoted 4 lines · Andy Shevchenko
No need to repeat 'return ret;' inside and outside conditional. Just use one outside conditional for both cases.
Signed-off-by Andy Shevchenko <[email protected]>Acked-by Mika Westerberg <[email protected]>
Pushed to my review and testing queue, thanks!
Signature · 2 lines
With Best Regards, Andy Shevchenko