Skip to content

Commit

Permalink
USB: serial: remove duplicate returns
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
error27 authored and Jiri Kosina committed Aug 10, 2011
1 parent bd74b32 commit 6580a67
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/usb/serial/mos7720.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/mos7840.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6580a67

Please sign in to comment.