summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Putko <igorpetindev@gmail.com>2026-06-18 18:56:26 +0300
committerLinus Walleij <linusw@kernel.org>2026-06-30 15:24:38 +0200
commita1636f548c497cedf001238c879eae9e271b5809 (patch)
tree83ba0fb204eae23756bf61e25bf5120ebe532362
parent076df055a505aa4ce36b92eba8525fca76c9b213 (diff)
downloadlinux-stable-a1636f548c497cedf001238c879eae9e271b5809.tar.gz
linux-stable-a1636f548c497cedf001238c879eae9e271b5809.zip
gpio: tb10x: remove unnecessary braces
Fix the checkpatch.pl warning by removing unnecessary braces from a single-statement if-block in tb10x_gpio_probe(). Signed-off-by: Igor Putko <igorpetindev@gmail.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
-rw-r--r--drivers/gpio/gpio-tb10x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c
index d30524dbc841..7fb8e6223bd1 100644
--- a/drivers/gpio/gpio-tb10x.c
+++ b/drivers/gpio/gpio-tb10x.c
@@ -167,9 +167,8 @@ static int tb10x_gpio_probe(struct platform_device *pdev)
tb10x_gpio->domain = irq_domain_create_linear(dev_fwnode(dev),
tb10x_gpio->chip.gc.ngpio,
&irq_generic_chip_ops, NULL);
- if (!tb10x_gpio->domain) {
+ if (!tb10x_gpio->domain)
return -ENOMEM;
- }
ret = irq_alloc_domain_generic_chips(tb10x_gpio->domain,
tb10x_gpio->chip.gc.ngpio, 1, tb10x_gpio->chip.gc.label,