Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp221299pxj; Wed, 16 Jun 2021 00:29:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjdsXihsLRUsPe79Aq88i9H3QW816H0Ci8VSr99ZlKtc8nnBtXI5QANqUQkQxqCMFzB1eF X-Received: by 2002:a02:6944:: with SMTP id e65mr2882733jac.31.1623828594118; Wed, 16 Jun 2021 00:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623828594; cv=none; d=google.com; s=arc-20160816; b=0ATqdcMrCxIJzCRfdtfxoTjithgUgCGZRgOkNpK3xgtRtKpny/QLLTlP4nBPPeK6Vo KhcmYmSLvT6OW7L8KZnrqX6UKT4AgGttJhd+dPgcz9vUhkh2SyJDw4s+afZaKbh5eURy 8VHVzssDbcYkTh5JNogfVJIrDkzCtvpLBNvfL2jFiCFoneORCcRstUfFIUghR/sEyRlx zNvV8XucPEhoMMGWwtG2rQCxxgv/i9aGsp2Ww6+qQCWtEQa5McZpeV1EiTKApN07ezd3 p0fBqa3yylI5A/tRUMfYrA+Bcx0g7pA+rgxYQvTncaW6Ugt1CxqY45j7+ErLzZgOlqxc Bylw== 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=SQjInCYXlOAsOeH9Zja/4l5no3nPqdR/h3QxnI7eB+4=; b=WB+z+8D7T4f4X5/wFSr99pahY/YFBTbKqGy2qRwyvOJ0IMSVt5nSxu9OmNyDC77l+5 8+S7ZbmX2AMr96F/dwJ8TeejS9yU/6BWk870XqDLQjQRkpggjlSTUKAmVYZ54D1IdWwJ lGkHvyk1sCYK8ZGKar4fmkEZFjrCB51oYmp9cVpq2DKZARoM5hE5kTfJCwB8v/224a5Y +pt/OopbI83uZSyreCrt7hXAQbsUQRQx7uZelx7pgubrRVBPz8p+IHSRWBCv/mWTZiBC iPqqBU6ZMYs0s8xqg3eHiVCyXXKjfvJsJrK/QDe/jGBg4d8RtVXfyMipF57SUFMZx9NV 8EIQ== 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 15si1709296ilz.158.2021.06.16.00.29.42; Wed, 16 Jun 2021 00:29:54 -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 S231805AbhFPHaw (ORCPT + 99 others); Wed, 16 Jun 2021 03:30:52 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:7297 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbhFPH3H (ORCPT ); Wed, 16 Jun 2021 03:29:07 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4G4c7p50qHz1BN7S; Wed, 16 Jun 2021 15:21:58 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 16 Jun 2021 15:26:54 +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; Wed, 16 Jun 2021 15:26:53 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 08/15] net: cosa: remove redundant braces {} Date: Wed, 16 Jun 2021 15:23:34 +0800 Message-ID: <1623828221-48349-9-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623828221-48349-1-git-send-email-huangguangbin2@huawei.com> References: <1623828221-48349-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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 This patch removes redundant braces {}, to fix the checkpatch.pl warning: "braces {} are not necessary for single statement blocks". Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/cosa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index b3dab61..6125ca4 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -1845,11 +1845,11 @@ static inline void rx_interrupt(struct cosa_data *cosa, int status) disable_dma(cosa->dma); clear_dma_ff(cosa->dma); set_dma_mode(cosa->dma, DMA_MODE_READ); - if (cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize & 0x1fff)) { + if (cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize & 0x1fff)) set_dma_addr(cosa->dma, virt_to_bus(cosa->rxbuf)); - } else { + else set_dma_addr(cosa->dma, virt_to_bus(cosa->bouncebuf)); - } + set_dma_count(cosa->dma, (cosa->rxsize&0x1fff)); enable_dma(cosa->dma); release_dma_lock(flags); -- 2.8.1