All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tty: sc16is7xx: remove retval from gpiochip_remove()
@ 2014-09-16 22:16 Linus Walleij
  2014-09-16 22:33 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2014-09-16 22:16 UTC (permalink / raw)
  To: linux-serial, Greg Kroah-Hartman; +Cc: Linus Walleij

We are trying to smoke out the use of the return value from
gpiochip_remove() from the kernel, this has been missed.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Greg, can you ACK this so I can merge it into the GPIO tree along
with the removal of the actual return value.
---
 drivers/tty/serial/sc16is7xx.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c
index 3284c31085a7..b534396b9568 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -1157,7 +1157,7 @@ static int sc16is7xx_probe(struct device *dev,
 
 #ifdef CONFIG_GPIOLIB
 	if (devtype->nr_gpio)
-		WARN_ON(gpiochip_remove(&s->gpio));
+		gpiochip_remove(&s->gpio);
 
 out_uart:
 #endif
@@ -1176,11 +1176,8 @@ static int sc16is7xx_remove(struct device *dev)
 	int i, ret = 0;
 
 #ifdef CONFIG_GPIOLIB
-	if (s->devtype->nr_gpio) {
-		ret = gpiochip_remove(&s->gpio);
-		if (ret)
-			return ret;
-	}
+	if (s->devtype->nr_gpio)
+		gpiochip_remove(&s->gpio);
 #endif
 
 	for (i = 0; i < s->uart.nr; i++) {
-- 
1.9.3


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

* Re: [PATCH] tty: sc16is7xx: remove retval from gpiochip_remove()
  2014-09-16 22:16 [PATCH] tty: sc16is7xx: remove retval from gpiochip_remove() Linus Walleij
@ 2014-09-16 22:33 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2014-09-16 22:33 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-serial

On Tue, Sep 16, 2014 at 03:16:55PM -0700, Linus Walleij wrote:
> We are trying to smoke out the use of the return value from
> gpiochip_remove() from the kernel, this has been missed.
> 
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> Greg, can you ACK this so I can merge it into the GPIO tree along
> with the removal of the actual return value.
> ---
>  drivers/tty/serial/sc16is7xx.c | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)


Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

end of thread, other threads:[~2014-09-16 22:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 22:16 [PATCH] tty: sc16is7xx: remove retval from gpiochip_remove() Linus Walleij
2014-09-16 22:33 ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.