Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4301065pxj; Wed, 12 May 2021 02:31:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU1CDECcoJr5u/1iisKNPXh/4mNxQ0MBjrMXFp27cJjUGgBykM6Q5HFgilabMU29V3N7SF X-Received: by 2002:a50:a404:: with SMTP id u4mr42250902edb.112.1620811875471; Wed, 12 May 2021 02:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620811875; cv=none; d=google.com; s=arc-20160816; b=OL0vz4uR5+ycijZvcQq8QlGGpAKaIVPH4v6uP6p6CVRJvBMVqo4tD3vupA2yB5GCdt i4XMUSPJgKL+3aLukcbEf68AatfTCloEt164bV43cY/s5RRDnxEsvrrLOLYV3fGSX01P VeZduCb2FzBCLarvesBv/4Rvbx9B49l0ZVLhipPF9+j33gt9YrPuEqk6Van8QfKIUsq4 AL/IafYDs1gN9BKw0PEbzgOixMtsmYaKiPlMR45+pt2RaHRqO0fIFjlPaVoDRrYVyyt4 Irt5Fuo5rQN3sZTiocbN5CxyLGXuYArUMk14pFMndtfuEzxA7b99P8Eoop4rvbkuluKl OGEA== 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=cMcRBhOvCPtRgAaQov4nzRVal+KbVwDID0zCetwy5hg=; b=ruf3ho1cbzQpBEBUTzDpvioAdSwUJ5POnGrFA5yV6VEPV3TX1UA9DUIONjFG4Q5eZp BfbHX2dyF+iNlDZwZP74SL/Ihcwr8LquMuuALBR1NOC9lYyQHVXW79IjygFpDqHhf2Aw rxLja5dfk3YUryhmC4Pl2ien1Tj3n+uPmo+P2Xa4M7ee0lBFviZ2p5pacwV9wZqPgOR0 Kg6so+CmYX9WDvjkpECBWNmmG8OWs7XlFoIb8g2AL9Z6cuqH8h/L9Z/98ixmcVGZjIvj +Mh6vt5EhUElBA00y4jizP9Q75cqV4iURqqfCRFPwnuLVrZP5ER1FxawHlbkVm8bW6J2 Za5Q== 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 mh7si19377642ejb.585.2021.05.12.02.30.51; Wed, 12 May 2021 02:31:15 -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 S230310AbhELJay (ORCPT + 99 others); Wed, 12 May 2021 05:30:54 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:2458 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbhELJam (ORCPT ); Wed, 12 May 2021 05:30:42 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Fg8Z22YHDzBtTP; Wed, 12 May 2021 17:26:50 +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:24 +0800 From: Xiaofei Tan To: , CC: , , Xiaofei Tan Subject: [PATCH 02/17] tty: tty_baudrate: Fix coding style issues of block comments Date: Wed, 12 May 2021 17:26:10 +0800 Message-ID: <1620811585-18582-3-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 comment sentenses. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_baudrate.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/tty/tty_baudrate.c b/drivers/tty/tty_baudrate.c index b3f5ba9..426b125 100644 --- a/drivers/tty/tty_baudrate.c +++ b/drivers/tty/tty_baudrate.c @@ -159,8 +159,9 @@ void tty_termios_encode_baud_rate(struct ktermios *termios, #endif #ifdef BOTHER /* If the user asked for a precise weird speed give a precise weird - answer. If they asked for a Bfoo speed they may have problems - digesting non-exact replies so fuzz a bit */ + * answer. If they asked for a Bfoo speed they may have problems + * digesting non-exact replies so fuzz a bit. + */ if ((termios->c_cflag & CBAUD) == BOTHER) { oclose = 0; @@ -191,7 +192,8 @@ void tty_termios_encode_baud_rate(struct ktermios *termios, if (ibaud - iclose <= baud_table[i] && ibaud + iclose >= baud_table[i]) { /* For the case input == output don't set IBAUD bits - if the user didn't do so */ + * if the user didn't do so. + */ if (ofound == i && !ibinput) ifound = i; #ifdef IBSHIFT @@ -211,7 +213,8 @@ void tty_termios_encode_baud_rate(struct ktermios *termios, if (ofound == -1) termios->c_cflag |= BOTHER; /* Set exact input bits only if the input and output differ or the - user already did */ + * user already did. + */ if (ifound == -1 && (ibaud != obaud || ibinput)) termios->c_cflag |= (BOTHER << IBSHIFT); #else -- 2.8.1