mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drivers/staging/greybus: gpio.c - Fixed a checkpatch generated warning
@ 2016-09-25 20:35 Chase Metzger
  2016-09-27  9:32 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Chase Metzger @ 2016-09-25 20:35 UTC (permalink / raw)
  To: rmfrfs; +Cc: johan, elder, gregkh, devel, linux-kernel, Chase Metzger

Removed braces for single line if statement.

Signed-off-by: Chase Metzger <chasemetzger15@gmail.com>
---
 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;
-	}
 }
 
 /**
-- 
2.1.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers/staging/greybus: gpio.c - Fixed a checkpatch generated warning
  2016-09-25 20:35 [PATCH] drivers/staging/greybus: gpio.c - Fixed a checkpatch generated warning Chase Metzger
@ 2016-09-27  9:32 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2016-09-27  9:32 UTC (permalink / raw)
  To: Chase Metzger
  Cc: rmfrfs, Johan Hovold, Alex Elder, Greg Kroah-Hartman, devel,
	linux-kernel

On Mon, Sep 26, 2016 at 2:05 AM, Chase Metzger <chasemetzger15@gmail.com> wrote:
> Removed braces for single line if statement.
>
> Signed-off-by: Chase Metzger <chasemetzger15@gmail.com>
> ---
>  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@linaro.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-27  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-25 20:35 [PATCH] drivers/staging/greybus: gpio.c - Fixed a checkpatch generated warning Chase Metzger
2016-09-27  9:32 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®