diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2017-03-14 11:07:45 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-14 11:20:33 +0800 |
commit | 940f6daec092819674ce26f1b6f0be4bbb9923a8 (patch) | |
tree | dcaf1f3e4f13cf7ea953abf9a1321bade162533b /drivers/staging/dgnc/dgnc_tty.c | |
parent | dec5b6c569d2992e550951662ba27576f24924f7 (diff) |
staging: dgnc: remove useless switch-case statements
The dgnc_tty_send_break() has a switch-case condition for msec.
It is no use except case -1.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_tty.c')
-rw-r--r-- | drivers/staging/dgnc/dgnc_tty.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index dc76e9f6ef91..854bd1da8887 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -1790,16 +1790,8 @@ static int dgnc_tty_send_break(struct tty_struct *tty, int msec) if (!bd || bd->magic != DGNC_BOARD_MAGIC) return -EIO; - switch (msec) { - case -1: + if (msec < 0) msec = 0xFFFF; - break; - case 0: - msec = 0; - break; - default: - break; - } spin_lock_irqsave(&ch->ch_lock, flags); |