Skip to content

Commit bda2f1c

Browse files
committed
pinctrl: baytrail: Drop duplicate return statement
No need to repeat 'return ret;' inside and outside conditional. Just use one outside conditional for both cases. Acked-by: Mika Westerberg <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 52c62a3 commit bda2f1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/pinctrl/intel/pinctrl-baytrail.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,10 +1542,8 @@ static int byt_gpio_probe(struct intel_pinctrl *vg)
15421542
}
15431543

15441544
ret = devm_gpiochip_add_data(vg->dev, gc, vg);
1545-
if (ret) {
1545+
if (ret)
15461546
dev_err(vg->dev, "failed adding byt-gpio chip\n");
1547-
return ret;
1548-
}
15491547

15501548
return ret;
15511549
}

0 commit comments

Comments
 (0)