From: Hui Tang <tanghui20@huawei.com>
To: <davem@davemloft.net>, <kuba@kernel.org>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Hui Tang <tanghui20@huawei.com>,
Steffen Klassert <klassert@kernel.org>,
Jes Sorensen <jes@trained-monkey.org>,
Michael Chan <michael.chan@broadcom.com>,
"Rasesh Mody" <rmody@marvell.com>, <GR-Linux-NIC-Dev@marvell.com>,
Raju Rangoju <rajur@chelsio.com>,
Denis Kirjanov <kda@linux-powerpc.org>,
Mirko Lindner <mlindner@marvell.com>,
Stephen Hemminger <stephen@networkplumber.org>,
Russell King <linux@armlinux.org.uk>,
Daniele Venzano <venza@brownhat.org>,
Nicolas Pitre <nico@fluxnic.net>,
Shannon Nelson <snelson@pensando.io>,
"Jeff Kirsher" <jeffrey.t.kirsher@intel.com>,
Joe Perches <joe@perches.com>, "Lee Jones" <lee.jones@linaro.org>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
Yixing Liu <liuyixing1@huawei.com>,
Nathan Chancellor <nathan@kernel.org>,
Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
Vaibhav Gupta <vaibhavgupta40@gmail.com>,
Masahiro Yamada <masahiroy@kernel.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
Miguel Ojeda <ojeda@kernel.org>,
"Geert Uytterhoeven" <geert@linux-m68k.org>,
Mike Rapoport <rppt@kernel.org>,
"Thomas Gleixner" <tglx@linutronix.de>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Jeremy Kerr <jk@ozlabs.org>, Moritz Fischer <mdf@kernel.org>,
Wei Yongjun <weiyongjun1@huawei.com>,
Lucy Yan <lucyyan@google.com>, Edward Cree <ecree@solarflare.com>,
Jesse Brandeburg <jesse.brandeburg@intel.com>,
Zheng Yongjun <zhengyongjun3@huawei.com>,
"Jason Yan" <yanaijie@huawei.com>, Andrew Lunn <andrew@lunn.ch>,
Romain Perier <romain.perier@gmail.com>,
Wang Hai <wanghai38@huawei.com>,
Colin Ian King <colin.king@canonical.com>,
Luo Jiaxing <luojiaxing@huawei.com>,
Allen Pais <apais@linux.microsoft.com>,
Kees Cook <keescook@chromium.org>,
Kalle Valo <kvalo@codeaurora.org>,
Bhaskar Chowdhury <unixbhaskar@gmail.com>,
YueHaibing <yuehaibing@huawei.com>,
Gaurav Singh <gaurav1086@gmail.com>, <linux-acenic@sunsite.dk>,
<linux-parisc@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: [PATCH 02/20] net: alteon: remove leading spaces before tabs
Date: Wed, 19 May 2021 12:45:27 +0800 [thread overview]
Message-ID: <1621399671-15517-3-git-send-email-tanghui20@huawei.com> (raw)
In-Reply-To: <1621399671-15517-1-git-send-email-tanghui20@huawei.com>
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@huawei.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
next prev parent reply other threads:[~2021-05-19 4:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-19 4:45 [PATCH 00/20] net: ethernet: remove leading spaces before tabs Hui Tang
2021-05-19 4:45 ` [PATCH 01/20] net: 3com: " Hui Tang
2021-05-19 4:45 ` Hui Tang [this message]
2021-05-19 4:45 ` [PATCH 03/20] net: amd: " Hui Tang
2021-05-19 4:45 ` [PATCH 04/20] net: apple: " Hui Tang
2021-05-19 4:45 ` [PATCH 05/20] net: broadcom: " Hui Tang
2021-05-19 5:04 ` [PATCH 00/20] net: ethernet: " Hui Tang
-- strict thread matches above, loose matches on Subject: below --
2021-05-19 5:30 Hui Tang
2021-05-19 5:30 ` [PATCH 02/20] net: alteon: " Hui Tang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1621399671-15517-3-git-send-email-tanghui20@huawei.com \
--to=tanghui20@huawei.com \
--cc=GR-Linux-NIC-Dev@marvell.com \
--cc=akpm@linux-foundation.org \
--cc=andrew@lunn.ch \
--cc=apais@linux.microsoft.com \
--cc=bigeasy@linutronix.de \
--cc=christophe.jaillet@wanadoo.fr \
--cc=colin.king@canonical.com \
--cc=davem@davemloft.net \
--cc=ecree@solarflare.com \
--cc=gaurav1086@gmail.com \
--cc=geert@linux-m68k.org \
--cc=gustavoars@kernel.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jes@trained-monkey.org \
--cc=jesse.brandeburg@intel.com \
--cc=jk@ozlabs.org \
--cc=joe@perches.com \
--cc=kda@linux-powerpc.org \
--cc=keescook@chromium.org \
--cc=klassert@kernel.org \
--cc=kuba@kernel.org \
--cc=kvalo@codeaurora.org \
--cc=lee.jones@linaro.org \
--cc=linux-acenic@sunsite.dk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=liuyixing1@huawei.com \
--cc=lucyyan@google.com \
--cc=luojiaxing@huawei.com \
--cc=masahiroy@kernel.org \
--cc=mdf@kernel.org \
--cc=michael.chan@broadcom.com \
--cc=mlindner@marvell.com \
--cc=nathan@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nico@fluxnic.net \
--cc=ojeda@kernel.org \
--cc=rajur@chelsio.com \
--cc=rmody@marvell.com \
--cc=romain.perier@gmail.com \
--cc=rppt@kernel.org \
--cc=snelson@pensando.io \
--cc=stephen@networkplumber.org \
--cc=tglx@linutronix.de \
--cc=unixbhaskar@gmail.com \
--cc=vaibhavgupta40@gmail.com \
--cc=venza@brownhat.org \
--cc=wanghai38@huawei.com \
--cc=weiyongjun1@huawei.com \
--cc=yanaijie@huawei.com \
--cc=yuehaibing@huawei.com \
--cc=zhengyongjun3@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox