mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:09:29 +02: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> Link: https://patch.msgid.link/20260618155626.18751-4-igorpetindev@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
committed by
Bartosz Golaszewski
parent
23cf763ac5
commit
309f81de06
@@ -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