Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4301425pxj; Wed, 12 May 2021 02:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3n+WoZGgZB/QlibHkrEGKxoifR7MPtGqMgPIo1vsvwdXmqlx1V0LsWq0iUSPkmiL6+/1/ X-Received: by 2002:a05:6602:54:: with SMTP id z20mr16093219ioz.48.1620811911046; Wed, 12 May 2021 02:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620811911; cv=none; d=google.com; s=arc-20160816; b=vz0JHcnh4NcNEsWwbui2s14giHFoqVGNKE3lKuL6XLFNTTI2mzNSlKFAHdli7Qmfsd v7jYOCROJJe4B34ESr0uX11SPBOGBybmBTa5DzEAJQIIGcKsHclhzIbR9Mi25S5tJSk2 Kehgdq7djbX+B85FfdIAFyiw37tZO5MxYhYPULXP0ZrC1MOZNKUPEE5QaehRhqZ7fM1t W3uWs4iXaOgrKnVe+Un39FF5SBhPAnk96JuFRbxo7JZZnHT3ZVgP1J6f1VzC6cSw0+4t CQlEA8/g+Dn5MsQDEK0TnIsMCG5Z5lbkUZMxLb/bCQqOsD+PprTgwlbm9zmCvMMBz3N2 /mgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=R97h1BXzL+t4cdH9I/nDR3mJpZFr+7+jqJJyYNDShHo=; b=bbXAjmr0t44SYnKmbt604FJ2p3Tq/B8UvqBiBaUdK1/xOg9ZrNgEKPtR51jAyRBM48 lH9+NRuUZ5+dwi/ndukVHXpDeOrhczassvI2nWRtjPQ7C+q1lfR1+GUxPDX4le2o8+26 VRvFS+L6aurh0XwVpwlgwZ5yUNYhbhlKHWGu90KRmpXCrPnIbNFf7U458HYopdmZ8Giw LZKSAKlWqRIfgligkgviZJZ79nFgYBT1WujEPvzRC9wI/Y1yFm5jyabiXcG+1qz+XtcT M4pr+1cVTTnWZS1N8GYnhORzogcT8QczoZPj0xixYL5yZER3LE2DuTZDo32FWpjHFLLP /RTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si22561855jao.87.2021.05.12.02.31.39; Wed, 12 May 2021 02:31:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230471AbhELJb2 (ORCPT + 99 others); Wed, 12 May 2021 05:31:28 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:2647 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbhELJaq (ORCPT ); Wed, 12 May 2021 05:30:46 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Fg8Zh7261zldXk; Wed, 12 May 2021 17:27:24 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 17:29:27 +0800 From: Xiaofei Tan To: , CC: , , Xiaofei Tan Subject: [PATCH 12/17] tty: tty_io: Fix an issue of code indent for conditional statements Date: Wed, 12 May 2021 17:26:20 +0800 Message-ID: <1620811585-18582-13-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1620811585-18582-1-git-send-email-tanxiaofei@huawei.com> References: <1620811585-18582-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix an issue of code indent for conditional statements,reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 12270cb..6e65726 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"); -- 2.8.1