[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200209073621.30026-1-jrtknauer@gmail.com>
Date: Sun, 9 Feb 2020 00:36:21 -0700
From: Jarrett Knauer <jrtknauer@...il.com>
To: netdev@...r.kernel.org
Cc: Jarrett Knauer <jrtknauer@...il.com>
Subject: [PATCH] staging: qlge: Fixed extra indentation in qlget_get_stats()
qlge TODO cited weird indentation all over qlge files, with
qlget_get_stats() as an example. With this fix the TODO will need to be
updated as well.
This is also a re-submission, as I incorrectly sent my first patch
directly to the maintainers instead of to the correct mailing list.
Apologies.
Signed-off-by: Jarrett Knauer <jrtknauer@...il.com>
---
drivers/staging/qlge/qlge_main.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/qlge_main.c
index ef8037d0b52e..a56bd69afd35 100644
--- a/drivers/staging/qlge/qlge_main.c
+++ b/drivers/staging/qlge/qlge_main.c
@@ -4123,11 +4123,11 @@ static struct net_device_stats *qlge_get_stats(struct net_device
/* Get RX stats. */
pkts = mcast = dropped = errors = bytes = 0;
for (i = 0; i < qdev->rss_ring_count; i++, rx_ring++) {
- pkts += rx_ring->rx_packets;
- bytes += rx_ring->rx_bytes;
- dropped += rx_ring->rx_dropped;
- errors += rx_ring->rx_errors;
- mcast += rx_ring->rx_multicast;
+ pkts += rx_ring->rx_packets;
+ bytes += rx_ring->rx_bytes;
+ dropped += rx_ring->rx_dropped;
+ errors += rx_ring->rx_errors;
+ mcast += rx_ring->rx_multicast;
}
ndev->stats.rx_packets = pkts;
ndev->stats.rx_bytes = bytes;
@@ -4138,9 +4138,9 @@ static struct net_device_stats *qlge_get_stats(struct net_device
/* Get TX stats. */
pkts = errors = bytes = 0;
for (i = 0; i < qdev->tx_ring_count; i++, tx_ring++) {
- pkts += tx_ring->tx_packets;
- bytes += tx_ring->tx_bytes;
- errors += tx_ring->tx_errors;
+ pkts += tx_ring->tx_packets;
+ bytes += tx_ring->tx_bytes;
+ errors += tx_ring->tx_errors;
}
ndev->stats.tx_packets = pkts;
ndev->stats.tx_bytes = bytes;
--
2.17.1
Powered by blists - more mailing lists