]> git.karo-electronics.de Git - linux-beck.git/commitdiff
tty: remove unneeded return statement
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 4 Oct 2015 19:19:18 +0000 (21:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:29:21 +0000 (21:29 -0700)
Signed-off-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c

index 71750cbac31f745a6a899bc598cf0af1b84556b2..5af8f1874c1aab02fc16dbb0950d7264caa282ca 100644 (file)
@@ -319,7 +319,7 @@ __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout)
 
 static inline void __tty_ldisc_unlock(struct tty_struct *tty)
 {
-       return ldsem_up_write(&tty->ldisc_sem);
+       ldsem_up_write(&tty->ldisc_sem);
 }
 
 static int __lockfunc