Skip to content

Commit 10f94f9

Browse files
andy-shevLinus Walleij
authored andcommitted
pinctrl: core: Remove unneeded {} around one line conditional body
The one line conditional body doesn't require {} surrounding it. Remove unneeded {}. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20231003120648.2838047-1-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent d875d6c commit 10f94f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,9 @@ struct pinctrl_dev *pinctrl_find_and_add_gpio_range(const char *devname,
445445
* it has not probed yet, so the driver trying to register this
446446
* range need to defer probing.
447447
*/
448-
if (!pctldev) {
448+
if (!pctldev)
449449
return ERR_PTR(-EPROBE_DEFER);
450-
}
450+
451451
pinctrl_add_gpio_range(pctldev, range);
452452

453453
return pctldev;

0 commit comments

Comments
 (0)