aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-08-06 10:31:26 -0400
committerJiri Kosina <jkosina@suse.cz>2011-08-10 08:17:08 -0400
commit6580a67b9b67a9d3aac0ad5cb0b775cba6f9a1cf (patch)
treef136431671e88dcbce460d4688ffd42ec68607a7 /drivers/usb/serial
parentbd74b32b77e0e4af47651da852cb3ced84e423b3 (diff)
USB: serial: remove duplicate returns
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> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/mos7720.c1
-rw-r--r--drivers/usb/serial/mos7840.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c
index 40abedbc5943..3524a105d042 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,
2006 dbg("%s (%d) TIOCSERGETLSR", __func__, port->number); 2006 dbg("%s (%d) TIOCSERGETLSR", __func__, port->number);
2007 return get_lsr_info(tty, mos7720_port, 2007 return get_lsr_info(tty, mos7720_port,
2008 (unsigned int __user *)arg); 2008 (unsigned int __user *)arg);
2009 return 0;
2010 2009
2011 /* FIXME: These should be using the mode methods */ 2010 /* FIXME: These should be using the mode methods */
2012 case TIOCMBIS: 2011 case TIOCMBIS:
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index 7b50aa122752..c72abd524983 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,
2263 case TIOCSERGETLSR: 2263 case TIOCSERGETLSR:
2264 dbg("%s (%d) TIOCSERGETLSR", __func__, port->number); 2264 dbg("%s (%d) TIOCSERGETLSR", __func__, port->number);
2265 return mos7840_get_lsr_info(tty, argp); 2265 return mos7840_get_lsr_info(tty, argp);
2266 return 0;
2267 2266
2268 case TIOCGSERIAL: 2267 case TIOCGSERIAL:
2269 dbg("%s (%d) TIOCGSERIAL", __func__, port->number); 2268 dbg("%s (%d) TIOCGSERIAL", __func__, port->number);