Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4301285pxj; Wed, 12 May 2021 02:31:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvh283g+DEq2uuIPuQvnS82PamG+PYD9cMaOfhmJxKqLqLeDfPtZyQuRVeTFitWZhROmOe X-Received: by 2002:a17:906:3a45:: with SMTP id a5mr37587786ejf.288.1620811895423; Wed, 12 May 2021 02:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620811895; cv=none; d=google.com; s=arc-20160816; b=njzTMnn+2FirkFZ8i/eTtjj9vCAjIjA/wjhHAMr4TgsjChzBqUaD3LcVY7dXnkQGRR SFX5OwPqaH1YCf43HkQjEW6ow3lR5tHeM949lsk6BIIPksTkAEN2334muVgO0VDQ6MNM FQxXXeqZUHFcHqCpV6i5yH9uQc2pZjJKhYQam9dklnJHdY5dJ71wMnvQSWqYr5ypWpKQ bJNetokAQZzepUT/vhDC/ZNOjNBsuZoyWrwR0Wgr++wkk8piGRAYVQxxZ3Isez5KUhXq foODmvSntKNhYxXJyL2iC09MtdPccqkty9DRQg23dy//cXXcruplCI5/XiMxgSiyV2gL K3bg== 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=S2PdCs2+QohE57qmxfjNYQLYxoCJkd2b0isRaF3qxg4=; b=WaB7FmPmkIdHjZB9OMa/qVqfZAsTDNu6dJnw9yqEIuzFplKADnYMfHD8AzTRTZK6X0 yyrKzqU473N8cRLjxJOAbTMGQBOydH6O+nGF2MD895pRwAOZt/tBaZHuTr8vwiI9pX47 /LLnRKUTFJB2VXRQL/T0ijNL2tY6kCKepVbFtPbmJ1i7g5BFHEUJqnJd8Q7Un90NAKIC oeZu9cMMCCisEqje4AjxRVU9GXABpWKtvnDohBVPpyoNsgH8HSCeoW8iHA/7lYuttPZ9 Wg70GqO3q7XqoGWxwtd5q9lkySAAgMQISNNAvUff18+8ctvZKNiQ4szoeN4grqR7N89/ ekGA== 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 c14si21732674edr.0.2021.05.12.02.31.12; Wed, 12 May 2021 02:31:35 -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 S230372AbhELJbA (ORCPT + 99 others); Wed, 12 May 2021 05:31:00 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:2642 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230176AbhELJao (ORCPT ); Wed, 12 May 2021 05:30:44 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Fg8Zh65bJzldXR; 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:29 +0800 From: Xiaofei Tan To: , CC: , , Xiaofei Tan Subject: [PATCH 17/17] tty: tty_port: Fix coding style issues of block comments Date: Wed, 12 May 2021 17:26:25 +0800 Message-ID: <1620811585-18582-18-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 coding style issues of block comments, reported by checkpatch.pl. Besides, add a period at the end of the sentenses. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_port.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c index 4047954..36d49ac 100644 --- a/drivers/tty/tty_port.c +++ b/drivers/tty/tty_port.c @@ -468,7 +468,8 @@ int tty_port_block_til_ready(struct tty_port *port, DEFINE_WAIT(wait); /* if non-blocking mode is set we can pass directly to open unless - the port has just hung up or is in another error state */ + * the port has just hung up or is in another error state. + */ if (tty_io_error(tty)) { tty_port_set_active(port, 1); return 0; @@ -485,8 +486,9 @@ int tty_port_block_til_ready(struct tty_port *port, do_clocal = 1; /* Block waiting until we can proceed. We may need to wait for the - carrier, but we must also wait for any close that is in progress - before the next open may complete */ + * carrier, but we must also wait for any close that is in progress + * before the next open may complete. + */ retval = 0; @@ -503,7 +505,8 @@ int tty_port_block_til_ready(struct tty_port *port, prepare_to_wait(&port->open_wait, &wait, TASK_INTERRUPTIBLE); /* Check for a hangup or uninitialised port. - Return accordingly */ + * Return accordingly. + */ if (tty_hung_up_p(filp) || !tty_port_initialized(port)) { if (port->flags & ASYNC_HUP_NOTIFY) retval = -EAGAIN; @@ -530,7 +533,8 @@ int tty_port_block_til_ready(struct tty_port *port, finish_wait(&port->open_wait, &wait); /* Update counts. A parallel hangup will have set count to zero and - we must not mess that up further */ + * we must not mess that up further. + */ spin_lock_irqsave(&port->lock, flags); if (!tty_hung_up_p(filp)) port->count++; -- 2.8.1