drivers/staging/greybus: gpio.c - Fixed a checkpatch generated warning
authorChase Metzger <chasemetzger15@gmail.com>
Sun, 25 Sep 2016 20:35:47 +0000 (13:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 10:59:51 +0000 (12:59 +0200)
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>
drivers/staging/greybus/gpio.c

index ea8234abf1856f30e08820df4a043554fdf15adc..5e06e4229e4239e3e307ce2a0faac266ddd1c7e5 100644 (file)
@@ -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;
-       }
 }
 
 /**