Browse Source

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

Removed braces for single line if statement.

Signed-off-by: Chase Metzger <chasemetzger15@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Chase Metzger 9 years ago
parent
commit
3d7f358855
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/staging/greybus/gpio.c

+ 1 - 2
drivers/staging/greybus/gpio.c

@@ -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;
-	}
 }
 
 /**