Skip to contentSkip to conversation

drivers/staging/greybus: gpio.c - Fixed a checkpatch generated warning

PATCH In review Chase Metzger 2 participants 2 messages Sep 25, 2016 – Sep 27, 2016

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

PATCH 1/1 drivers/staging/greybus: gpio.c - Fixed a checkpatch generated warning

Removed braces for single line if statement.

---
 drivers/staging/greybus/gpio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/greybus/gpio.c +1 -2
index ea8234a..5e06e42 100644
@@ -561,9 +561,8 @@ static void gb_gpio_irqchip_remove(struct gb_gpio_controller *ggc)
 		irq_domain_remove(ggc->irqdomain);
 	}
 
-	if (ggc->irqchip) {
+	if (ggc->irqchip)
 		ggc->irqchip = NULL;
-	}
 }
 
 /**
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Chase Metzger

Removed braces for single line if statement.

---
 drivers/staging/greybus/gpio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/greybus/gpio.c +0 -0
index ea8234a..5e06e42 100644

drivers/staging/greybus/gpio.c static void gb_gpio_irqchip_remove(struct gb_gpio_controller *ggc) · line 568

Quoted 10 lines
drivers/staging/greybus/gpio.c +1 -2
@@ -561,9 +561,8 @@ static void gb_gpio_irqchip_remove(struct gb_gpio_controller *ggc)
                irq_domain_remove(ggc->irqdomain);
        }
 
-       if (ggc->irqchip) {
+       if (ggc->irqchip)
                ggc->irqchip = NULL;
-       }
 }
 
 /**