Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3904824pxj; Tue, 8 Jun 2021 01:19:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5mntYXKUU58zQLkUur4mm/te6g3QJxV2DVJNd1h8RV/hcadUj57zVaAFoJHw9Y86f5SA1 X-Received: by 2002:a17:906:1299:: with SMTP id k25mr21947436ejb.139.1623140351688; Tue, 08 Jun 2021 01:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623140351; cv=none; d=google.com; s=arc-20160816; b=vX1mCQcbgP2vvNUDgSyXuPwYTbRZnCS8+Mat6oYfBDAPpeCzoASiYWDcNfZTxDxYbc KdWGWrVPTUfmfC8FW5jEOh8piGXivK2VCOBdbrUDCCEE0movvFQCUJfu1AtUSGGPygz4 qF6C2f6mvg1Eijsxu2doAHs9EPnptbjrXad8iop3gE9PLcNvRO9SPA/alEORRlaPHoj3 Rd/L6aEjLiJTaiRknR8f7VPYI/tLzSiIro7letFRsoiEBS7cEEyWBkuiFhaL7Os82M8P QKRNy3dLl1f6gbqrDHmI89iR17xTlxeWmvPC+pvKXTB7GIYjorcidpaV6wKv/TCwX0Kr gKnw== 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=u1os/3I77nZYo8FCq3Ewv4uB2K44OTXdGfp/aGYiJVg=; b=Go0Hj90CItabeyAZrHoVzaFOZhjEjb653wXek6tUHsOazUcH/ImYnut1T9L6AoZ1ft rf7Cp0tSHbwQz0ezFUkyi1B2dkRXaoCGGSxhETtNraAf5/Vo8wwZDSZ+UkRTLHxswVeu WDMUhsTAoZJ+yx8u7KreF47BFvcEHj2CFrC7o3if/gSPWMxHoeU8ZaAq1jkpsdVKvNeO XaeWF+NocPNubvFS7p38RR5qikA6Q7n+cyhbhZUcsyHlGhan9BFZDtmTm4VSzEYtlZe+ fPVdm0HCceob01AdkpLbrf37MXeH1Tiom+DqfQ1M21i+YOlPViu9ArumZX5pdMUcFwdX 9h0g== 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 l16si13160523edj.405.2021.06.08.01.18.48; Tue, 08 Jun 2021 01:19:11 -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 S231468AbhFHISM (ORCPT + 99 others); Tue, 8 Jun 2021 04:18:12 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3790 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230289AbhFHIRq (ORCPT ); Tue, 8 Jun 2021 04:17:46 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Fzjc53MpkzWsmJ; Tue, 8 Jun 2021 16:11:01 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 8 Jun 2021 16:15:52 +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; Tue, 8 Jun 2021 16:15:51 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 10/16] net: farsync: add some required spaces Date: Tue, 8 Jun 2021 16:12:36 +0800 Message-ID: <1623139962-34847-11-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623139962-34847-1-git-send-email-huangguangbin2@huawei.com> References: <1623139962-34847-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) 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 Add spaces required around that '=' and '*'. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/farsync.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index f2cd832..8f39be4 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c @@ -63,7 +63,7 @@ MODULE_LICENSE("GPL"); #define FST_MAX_MTU 8000 /* Huge but possible */ #define FST_DEF_MTU 1500 /* Common sane value */ -#define FST_TX_TIMEOUT (2*HZ) +#define FST_TX_TIMEOUT (2 * HZ) #ifdef ARPHRD_RAWHDLC #define ARPHRD_MYTYPE ARPHRD_RAWHDLC /* Raw frames */ @@ -1144,7 +1144,7 @@ fst_recover_rx_error(struct fst_card_info *card, struct fst_port_info *port, i = 0; while ((dmabits & (DMA_OWN | RX_STP)) == 0) { FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); - rxp = (rxp+1) % NUM_RX_BUFFER; + rxp = (rxp + 1) % NUM_RX_BUFFER; if (++i > NUM_RX_BUFFER) { dbg(DBG_ASS, "intr_rx: Discarding more bufs" " than we have\n"); @@ -1158,7 +1158,7 @@ fst_recover_rx_error(struct fst_card_info *card, struct fst_port_info *port, /* Discard the terminal buffer */ if (!(dmabits & DMA_OWN)) { FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); - rxp = (rxp+1) % NUM_RX_BUFFER; + rxp = (rxp + 1) % NUM_RX_BUFFER; } port->rxpos = rxp; return; @@ -1203,7 +1203,7 @@ fst_intr_rx(struct fst_card_info *card, struct fst_port_info *port) /* Return descriptor to card */ FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); - rxp = (rxp+1) % NUM_RX_BUFFER; + rxp = (rxp + 1) % NUM_RX_BUFFER; port->rxpos = rxp; return; } @@ -1229,7 +1229,7 @@ fst_intr_rx(struct fst_card_info *card, struct fst_port_info *port) /* Return descriptor to card */ FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); - rxp = (rxp+1) % NUM_RX_BUFFER; + rxp = (rxp + 1) % NUM_RX_BUFFER; port->rxpos = rxp; return; } @@ -1273,7 +1273,7 @@ fst_intr_rx(struct fst_card_info *card, struct fst_port_info *port) dbg(DBG_ASS, "About to increment rxpos by more than 1\n"); dbg(DBG_ASS, "rxp = %d rxpos = %d\n", rxp, port->rxpos); } - rxp = (rxp+1) % NUM_RX_BUFFER; + rxp = (rxp + 1) % NUM_RX_BUFFER; port->rxpos = rxp; } -- 2.8.1