Commit b9f8033f authored by Cong Ding's avatar Cong Ding Committed by Greg Kroah-Hartman

tty: cleanup checkpatch warning in pty.c

spaces are used for indent in 3 places of tty/pty.c, we change it to tab.
Signed-off-by: default avatarCong Ding <dinggnu@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 82f8c35f
...@@ -55,9 +55,9 @@ static void pty_close(struct tty_struct *tty, struct file *filp) ...@@ -55,9 +55,9 @@ static void pty_close(struct tty_struct *tty, struct file *filp)
set_bit(TTY_OTHER_CLOSED, &tty->flags); set_bit(TTY_OTHER_CLOSED, &tty->flags);
#ifdef CONFIG_UNIX98_PTYS #ifdef CONFIG_UNIX98_PTYS
if (tty->driver == ptm_driver) { if (tty->driver == ptm_driver) {
mutex_lock(&devpts_mutex); mutex_lock(&devpts_mutex);
devpts_pty_kill(tty->link->driver_data); devpts_pty_kill(tty->link->driver_data);
mutex_unlock(&devpts_mutex); mutex_unlock(&devpts_mutex);
} }
#endif #endif
tty_unlock(tty); tty_unlock(tty);
...@@ -661,7 +661,7 @@ static const struct tty_operations pty_unix98_ops = { ...@@ -661,7 +661,7 @@ static const struct tty_operations pty_unix98_ops = {
* Allocate a unix98 pty master device from the ptmx driver. * Allocate a unix98 pty master device from the ptmx driver.
* *
* Locking: tty_mutex protects the init_dev work. tty->count should * Locking: tty_mutex protects the init_dev work. tty->count should
* protect the rest. * protect the rest.
* allocated_ptys_lock handles the list of free pty numbers * allocated_ptys_lock handles the list of free pty numbers
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment