Re: [PATCH] drivers/staging/greybus: gpio.c - Fixed a checkpatch generated warning

From: Viresh Kumar
Date: Tue Sep 27 2016 - 05:32:39 EST


On Mon, Sep 26, 2016 at 2:05 AM, Chase Metzger <chasemetzger15@xxxxxxxxx> wrote:
> Removed braces for single line if statement.
>
> Signed-off-by: Chase Metzger <chasemetzger15@xxxxxxxxx>
> ---
> drivers/staging/greybus/gpio.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c
> index ea8234a..5e06e42 100644
> --- a/drivers/staging/greybus/gpio.c
> +++ b/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;
> - }
> }
>
> /**

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>