mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 12:13:51 -04:00
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>
This commit is contained in:
committed by
Linus Walleij
parent
076df055a5
commit
a1636f548c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user