mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
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 <mika.westerberg@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
52c62a3da8
commit
bda2f1c2d8
|
|
@ -1542,10 +1542,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user