[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1621399671-15517-3-git-send-email-tanghui20@huawei.com>
Date: Wed, 19 May 2021 12:45:27 +0800
From: Hui Tang <tanghui20@...wei.com>
To: <davem@...emloft.net>, <kuba@...nel.org>
CC: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Hui Tang <tanghui20@...wei.com>,
Steffen Klassert <klassert@...nel.org>,
Jes Sorensen <jes@...ined-monkey.org>,
Michael Chan <michael.chan@...adcom.com>,
"Rasesh Mody" <rmody@...vell.com>, <GR-Linux-NIC-Dev@...vell.com>,
Raju Rangoju <rajur@...lsio.com>,
Denis Kirjanov <kda@...ux-powerpc.org>,
Mirko Lindner <mlindner@...vell.com>,
Stephen Hemminger <stephen@...workplumber.org>,
Russell King <linux@...linux.org.uk>,
Daniele Venzano <venza@...wnhat.org>,
Nicolas Pitre <nico@...xnic.net>,
Shannon Nelson <snelson@...sando.io>,
"Jeff Kirsher" <jeffrey.t.kirsher@...el.com>,
Joe Perches <joe@...ches.com>,
"Lee Jones" <lee.jones@...aro.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Yixing Liu <liuyixing1@...wei.com>,
Nathan Chancellor <nathan@...nel.org>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Vaibhav Gupta <vaibhavgupta40@...il.com>,
Masahiro Yamada <masahiroy@...nel.org>,
"Andrew Morton" <akpm@...ux-foundation.org>,
Miguel Ojeda <ojeda@...nel.org>,
"Geert Uytterhoeven" <geert@...ux-m68k.org>,
Mike Rapoport <rppt@...nel.org>,
"Thomas Gleixner" <tglx@...utronix.de>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Jeremy Kerr <jk@...abs.org>, Moritz Fischer <mdf@...nel.org>,
Wei Yongjun <weiyongjun1@...wei.com>,
Lucy Yan <lucyyan@...gle.com>,
Edward Cree <ecree@...arflare.com>,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
Zheng Yongjun <zhengyongjun3@...wei.com>,
"Jason Yan" <yanaijie@...wei.com>, Andrew Lunn <andrew@...n.ch>,
Romain Perier <romain.perier@...il.com>,
Wang Hai <wanghai38@...wei.com>,
Colin Ian King <colin.king@...onical.com>,
Luo Jiaxing <luojiaxing@...wei.com>,
Allen Pais <apais@...ux.microsoft.com>,
Kees Cook <keescook@...omium.org>,
Kalle Valo <kvalo@...eaurora.org>,
Bhaskar Chowdhury <unixbhaskar@...il.com>,
YueHaibing <yuehaibing@...wei.com>,
Gaurav Singh <gaurav1086@...il.com>, <linux-acenic@...site.dk>,
<linux-parisc@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
Subject: [PATCH 02/20] net: alteon: remove leading spaces before tabs
There are a few leading spaces before tabs and remove it by running the
following commard:
$ find . -name '*.c' | xargs sed -r -i 's/^[ ]+\t/\t/'
$ find . -name '*.h' | xargs sed -r -i 's/^[ ]+\t/\t/'
Signed-off-by: Hui Tang <tanghui20@...wei.com>
---
drivers/net/ethernet/alteon/acenic.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/drivers/net/ethernet/alteon/acenic.c b/drivers/net/ethernet/alteon/acenic.c
index 1a7e4df..9dc12b1 100644
--- a/drivers/net/ethernet/alteon/acenic.c
+++ b/drivers/net/ethernet/alteon/acenic.c
@@ -1883,16 +1883,16 @@ static u32 ace_handle_event(struct net_device *dev, u32 evtcsm, u32 evtprd)
}
}
- if (ACE_IS_TIGON_I(ap)) {
- struct cmd cmd;
- cmd.evt = C_SET_RX_JUMBO_PRD_IDX;
- cmd.code = 0;
- cmd.idx = 0;
- ace_issue_cmd(ap->regs, &cmd);
- } else {
- writel(0, &((ap->regs)->RxJumboPrd));
- wmb();
- }
+ if (ACE_IS_TIGON_I(ap)) {
+ struct cmd cmd;
+ cmd.evt = C_SET_RX_JUMBO_PRD_IDX;
+ cmd.code = 0;
+ cmd.idx = 0;
+ ace_issue_cmd(ap->regs, &cmd);
+ } else {
+ writel(0, &((ap->regs)->RxJumboPrd));
+ wmb();
+ }
ap->jumbo = 0;
ap->rx_jumbo_skbprd = 0;
@@ -2489,9 +2489,9 @@ static netdev_tx_t ace_start_xmit(struct sk_buff *skb,
}
}
- wmb();
- ap->tx_prd = idx;
- ace_set_txprd(regs, ap, idx);
+ wmb();
+ ap->tx_prd = idx;
+ ace_set_txprd(regs, ap, idx);
if (flagsize & BD_FLG_COAL_NOW) {
netif_stop_queue(dev);
--
2.8.1
Powered by blists - more mailing lists