Skip to contentSkip to conversation

pinctrl: core: Remove unneeded {} around one line conditional body

PATCH In review Andy Shevchenko 2 participants 3 messages Oct 3, 2023 – Oct 10, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: core: Remove unneeded {} around one line conditional body

The one line conditional body doesn't require {} surrounding it. Remove unneeded {}.

---
 drivers/pinctrl/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/core.c +2 -2
index e2f7519bef04..5a15583bf4ae 100644
@@ -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;
Signature · 1 line
2.40.0.1.gaa8946217a0b
#1 lore raw
Quoted 2 lines · Andy Shevchenko

The one line conditional body doesn't require {} surrounding it. Remove unneeded {}.

Linus, if you are okay with the change, I can include in my usual PR. Whatever you prefer, though.

Signature · 2 lines
With Best Regards,
Andy Shevchenko