Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1698823pxj; Sat, 5 Jun 2021 00:08:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd/2pj4p+9xzs1mKIo7zqt/IxRztL8RKBowUloV2NIxYHpRy4iklu7AeWVT3tJOKdXYdGV X-Received: by 2002:a05:6402:695:: with SMTP id f21mr8660375edy.96.1622876883846; Sat, 05 Jun 2021 00:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622876883; cv=none; d=google.com; s=arc-20160816; b=sOtpLYb14lJ58irZNt5MQb5IYtHAFPiofIfL/MStwqQzwqBsGa+K+jdXD+UKhFH4JW xCV7ewqv+UXvj7bEm1wfSOVLL4Lb5jJlCgu5Tq4DsJxI7G2RsibJE00aeY1yti+FBAZh qHPNcuvN+3Ct5LrW9kZUwaafT1U9NRDIJpuUW2Rdz41c2S7OHP6GCWD+M2k5Skwso+iS O26uvPIigU6B6IwMn4JU3Yr3ulWR2Dl2Z3Fe1004thpSqp98MQHkKPGbmByOMg7wWU9J lxQe4OEZJBO7tDAZZRlGC4oiOmLKRsJK9tjdnLhpxQjsGxd6F8R1qM74KHEd7uks0NjH YmaA== 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=lmGQcmv/ubO0BqK3J6Q0tlnyi1UJmBP3ueRB2Y/ADyc=; b=Fnbye7QYMqUwrnI0EP/S7Udd0rtlAxbQI0220l1gINXW6HpciItygGjNaEYSrR513u vqQRBk/tdolGDXx7AbR32VLWX5SBGwqsKOqHSMVrTOun6z++M0bSi2994FKJmDN5F6/R 89GFN9snWjScx1CGFX654w3z7ci9ihxMlGjpYgg/myXVI7SMIJc9SdJiesTYTvXdQ0r1 atEboM1HwjfQ0ecWHpj108jYX9V2y0z9LwDNKhTTyx+L7suPy8h6Wv3/2Hr0DUy7J4PD ltBsdYEPq6zZnfc0CNmRDSUrrSE9pks+S9MUlsE6SR3Txqr3WhwQ+FOd3B8b+XRpMMlv UD0Q== 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 di24si3865720edb.509.2021.06.05.00.07.41; Sat, 05 Jun 2021 00:08:03 -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 S230208AbhFEHIC (ORCPT + 99 others); Sat, 5 Jun 2021 03:08:02 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3438 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbhFEHIA (ORCPT ); Sat, 5 Jun 2021 03:08:00 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FxrFC0zSHz6v5x; Sat, 5 Jun 2021 15:03:11 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sat, 5 Jun 2021 15:03:35 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sat, 5 Jun 2021 15:03:35 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 7/8] net: hd64570: remove redundant parentheses Date: Sat, 5 Jun 2021 15:00:28 +0800 Message-ID: <1622876429-47278-8-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1622876429-47278-1-git-send-email-huangguangbin2@huawei.com> References: <1622876429-47278-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li Remove redundant parentheses around 'cda >= desc_off'. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/hd64570.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wan/hd64570.c b/drivers/net/wan/hd64570.c index c6605ea..8af647c 100644 --- a/drivers/net/wan/hd64570.c +++ b/drivers/net/wan/hd64570.c @@ -301,7 +301,7 @@ static inline void sca_rx_intr(port_t *port) pkt_desc __iomem *desc; u32 cda = sca_inw(dmac + CDAL, card); - if ((cda >= desc_off) && (cda < desc_off + sizeof(pkt_desc))) + if (cda >= desc_off && (cda < desc_off + sizeof(pkt_desc))) break; /* No frame received */ desc = desc_address(port, port->rxin, 0); @@ -354,7 +354,7 @@ static inline void sca_tx_intr(port_t *port) u32 desc_off = desc_offset(port, port->txlast, 1); u32 cda = sca_inw(dmac + CDAL, card); - if ((cda >= desc_off) && (cda < desc_off + sizeof(pkt_desc))) + if (cda >= desc_off && (cda < desc_off + sizeof(pkt_desc))) break; /* Transmitter is/will_be sending this frame */ desc = desc_address(port, port->txlast, 1); -- 2.8.1