pinctrl: core: Remove unneeded {} around one line conditional body
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 3 Oct 2023 12:06:48 +0000 (15:06 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Oct 2023 12:05:38 +0000 (14:05 +0200)
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>
drivers/pinctrl/core.c

index e9dc9638120a52fd986e3f00bd7731a8b4902731..4f44ae4d7bead45dcf52d5b273b0cf088116ab59 100644 (file)
@@ -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;