浏览代码

tty: remove unneeded return statement

Signed-off-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Guillaume Gomez 9 年之前
父节点
当前提交
52772ea615
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/tty/tty_ldisc.c

+ 1 - 1
drivers/tty/tty_ldisc.c

@@ -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