Commit 5e4d5ac3 authored by Xiaofei Tan's avatar Xiaofei Tan Committed by Greg Kroah-Hartman

tty: tty_io: Fix an issue of code indent for conditional statements

Fix an issue of code indent for conditional statements,reported by
checkpatch.pl.
Signed-off-by: default avatarXiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1620811585-18582-13-git-send-email-tanxiaofei@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 44969f85
...@@ -1125,7 +1125,7 @@ static ssize_t file_tty_write(struct file *file, struct kiocb *iocb, struct iov_ ...@@ -1125,7 +1125,7 @@ static ssize_t file_tty_write(struct file *file, struct kiocb *iocb, struct iov_
if (tty_paranoia_check(tty, file_inode(file), "tty_write")) if (tty_paranoia_check(tty, file_inode(file), "tty_write"))
return -EIO; return -EIO;
if (!tty || !tty->ops->write || tty_io_error(tty)) if (!tty || !tty->ops->write || tty_io_error(tty))
return -EIO; return -EIO;
/* Short term debug to catch buggy drivers */ /* Short term debug to catch buggy drivers */
if (tty->ops->write_room == NULL) if (tty->ops->write_room == NULL)
tty_err(tty, "missing write_room method\n"); tty_err(tty, "missing write_room method\n");
......
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