From: Xiaofei Tan Date: Wed, 12 May 2021 09:26:20 +0000 (+0800) Subject: tty: tty_io: Fix an issue of code indent for conditional statements X-Git-Tag: v5.15~789^2~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e4d5ac32ba538f29ff64104e7211486cc805904;p=platform%2Fkernel%2Flinux-starfive.git 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: Xiaofei Tan Link: https://lore.kernel.org/r/1620811585-18582-13-git-send-email-tanxiaofei@huawei.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 7a1bd4e..88739b1 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -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")) return -EIO; if (!tty || !tty->ops->write || tty_io_error(tty)) - return -EIO; + return -EIO; /* Short term debug to catch buggy drivers */ if (tty->ops->write_room == NULL) tty_err(tty, "missing write_room method\n");