mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
staging: dgnc: preserve return code
Return code from tty_check_change() should be being preserved. Preserve return code from call to tty_check_change(). Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9280b3a61c
commit
f15e60ce4e
1 changed files with 3 additions and 3 deletions
|
|
@ -2394,7 +2394,7 @@ static int dgnc_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
|
|||
rc = tty_check_change(tty);
|
||||
spin_unlock_irqrestore(&ch->ch_lock, flags);
|
||||
if (rc)
|
||||
return -ENODEV;
|
||||
return rc;
|
||||
|
||||
rc = ch_bd_ops->drain(tty, 0);
|
||||
if (rc)
|
||||
|
|
@ -2419,7 +2419,7 @@ static int dgnc_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
|
|||
rc = tty_check_change(tty);
|
||||
spin_unlock_irqrestore(&ch->ch_lock, flags);
|
||||
if (rc)
|
||||
return -ENODEV;
|
||||
return rc;
|
||||
|
||||
rc = ch_bd_ops->drain(tty, 0);
|
||||
if (rc)
|
||||
|
|
@ -2437,7 +2437,7 @@ static int dgnc_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
|
|||
rc = tty_check_change(tty);
|
||||
spin_unlock_irqrestore(&ch->ch_lock, flags);
|
||||
if (rc)
|
||||
return -ENODEV;
|
||||
return rc;
|
||||
|
||||
rc = ch_bd_ops->drain(tty, 0);
|
||||
if (rc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue