* [patch] USB: serial: remove duplicate returns
@ 2011-08-06 14:31 Dan Carpenter
2011-08-10 12:17 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2011-08-06 14:31 UTC (permalink / raw)
To: kernel-janitors
This small untidiness with two returns in a row was copy and pasted
into mos7720.c and mos7840.c.
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c
index 40abedb..3524a10 100644
--- a/drivers/usb/serial/mos7720.c
+++ b/drivers/usb/serial/mos7720.c
@@ -2006,7 +2006,6 @@ static int mos7720_ioctl(struct tty_struct *tty,
dbg("%s (%d) TIOCSERGETLSR", __func__, port->number);
return get_lsr_info(tty, mos7720_port,
(unsigned int __user *)arg);
- return 0;
/* FIXME: These should be using the mode methods */
case TIOCMBIS:
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index 7b50aa1..c72abd5 100644
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -2263,7 +2263,6 @@ static int mos7840_ioctl(struct tty_struct *tty,
case TIOCSERGETLSR:
dbg("%s (%d) TIOCSERGETLSR", __func__, port->number);
return mos7840_get_lsr_info(tty, argp);
- return 0;
case TIOCGSERIAL:
dbg("%s (%d) TIOCGSERIAL", __func__, port->number);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] USB: serial: remove duplicate returns
2011-08-06 14:31 [patch] USB: serial: remove duplicate returns Dan Carpenter
@ 2011-08-10 12:17 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2011-08-10 12:17 UTC (permalink / raw)
To: kernel-janitors
On Sat, 6 Aug 2011, Dan Carpenter wrote:
> This small untidiness with two returns in a row was copy and pasted
> into mos7720.c and mos7840.c.
>
> Signed-off-by: Dan Carpenter <error27@gmail.com>
>
> diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c
> index 40abedb..3524a10 100644
> --- a/drivers/usb/serial/mos7720.c
> +++ b/drivers/usb/serial/mos7720.c
> @@ -2006,7 +2006,6 @@ static int mos7720_ioctl(struct tty_struct *tty,
> dbg("%s (%d) TIOCSERGETLSR", __func__, port->number);
> return get_lsr_info(tty, mos7720_port,
> (unsigned int __user *)arg);
> - return 0;
>
> /* FIXME: These should be using the mode methods */
> case TIOCMBIS:
> diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
> index 7b50aa1..c72abd5 100644
> --- a/drivers/usb/serial/mos7840.c
> +++ b/drivers/usb/serial/mos7840.c
> @@ -2263,7 +2263,6 @@ static int mos7840_ioctl(struct tty_struct *tty,
> case TIOCSERGETLSR:
> dbg("%s (%d) TIOCSERGETLSR", __func__, port->number);
> return mos7840_get_lsr_info(tty, argp);
> - return 0;
>
> case TIOCGSERIAL:
> dbg("%s (%d) TIOCGSERIAL", __func__, port->number);
Doesn't seem to be in linux-next as of today, so I have picked it up.
Thanks,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-10 12:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-06 14:31 [patch] USB: serial: remove duplicate returns Dan Carpenter
2011-08-10 12:17 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox