diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-10-03 14:06:48 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-10-10 14:05:38 +0200 |
commit | 10f94f9cad2c94236c0288e547f324d21c01262a (patch) | |
tree | d61b3600a339097c9f9abd121bcd66f38d3ff894 /drivers/pinctrl/core.c | |
parent | pinctrl: aspeed: Allow changing SPI mode from hardware strap defaults (diff) | |
download | linux-10f94f9cad2c94236c0288e547f324d21c01262a.tar.xz linux-10f94f9cad2c94236c0288e547f324d21c01262a.zip |
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>
Diffstat (limited to 'drivers/pinctrl/core.c')
-rw-r--r-- | drivers/pinctrl/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index e9dc9638120a..4f44ae4d7bea 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -445,9 +445,9 @@ struct pinctrl_dev *pinctrl_find_and_add_gpio_range(const char *devname, * it has not probed yet, so the driver trying to register this * range need to defer probing. */ - if (!pctldev) { + if (!pctldev) return ERR_PTR(-EPROBE_DEFER); - } + pinctrl_add_gpio_range(pctldev, range); return pctldev; |