Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 940f6dae authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman
Browse files

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: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dec5b6c5
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -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);