From: ShravyaPanchagiri <shravy112@gmail.com>
To: netdev@vger.kernel.org
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org,
ShravyaPanchagiri <shravy112@gmail.com>
Subject: [PATCH] net: ifb: fix space after comma in for loops
Date: Thu, 12 Mar 2026 19:36:51 -0500 [thread overview]
Message-ID: <20260313003651.65612-1-shravy112@gmail.com> (raw)
Add missing space after comma in for loop to fix checkpatch errors.
Signed-off-by: ShravyaPanchagiri <shravy112@gmail.com>
---
drivers/net/ifb.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
index 5407d2ed71b3..58a49ed5aabe 100644
--- a/drivers/net/ifb.c
+++ b/drivers/net/ifb.c
@@ -18,12 +18,10 @@
You need the tc action mirror or redirect to feed this device
packets.
-
Authors: Jamal Hadi Salim (2005)
*/
-
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
@@ -148,7 +146,6 @@ static void ifb_ri_tasklet(struct tasklet_struct *t)
txp->tasklet_pending = 1;
tasklet_schedule(&txp->ifb_tasklet);
}
-
}
static void ifb_stats64(struct net_device *dev,
@@ -160,7 +157,7 @@ static void ifb_stats64(struct net_device *dev,
u64 packets, bytes;
int i;
- for (i = 0; i < dev->num_tx_queues; i++,txp++) {
+ for (i = 0; i < dev->num_tx_queues; i++, txp++) {
do {
start = u64_stats_fetch_begin(&txp->rx_stats.sync);
packets = u64_stats_read(&txp->rx_stats.packets);
@@ -191,7 +188,7 @@ static int ifb_dev_init(struct net_device *dev)
if (!txp)
return -ENOMEM;
dp->tx_private = txp;
- for (i = 0; i < dev->num_tx_queues; i++,txp++) {
+ for (i = 0; i < dev->num_tx_queues; i++, txp++) {
txp->txqnum = i;
txp->dev = dev;
__skb_queue_head_init(&txp->rq);
@@ -299,7 +296,7 @@ static void ifb_dev_free(struct net_device *dev)
struct ifb_q_private *txp = dp->tx_private;
int i;
- for (i = 0; i < dev->num_tx_queues; i++,txp++) {
+ for (i = 0; i < dev->num_tx_queues; i++, txp++) {
tasklet_kill(&txp->ifb_tasklet);
__skb_queue_purge(&txp->rq);
__skb_queue_purge(&txp->tq);
--
2.43.0
next reply other threads:[~2026-03-13 0:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 0:36 ShravyaPanchagiri [this message]
2026-03-13 0:49 ` [PATCH] net: ifb: fix space after comma in for loops Jakub Kicinski
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=20260313003651.65612-1-shravy112@gmail.com \
--to=shravy112@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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