]> git.baikalelectronics.ru Git - kernel.git/commitdiff
staging: qlge: cleanup indent in qlge_main.c
authorMathieu Dolmen <mathieu.dolmen@gmail.com>
Sun, 19 Apr 2020 12:57:12 +0000 (14:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 11:35:11 +0000 (13:35 +0200)
Cleanup indentation style in qlge_main.c.
Fix 2 warnings found by checkpatch.pl.

Signed-off-by: Mathieu Dolmen <mathieu.dolmen@gmail.com>
Link: https://lore.kernel.org/r/20200419125712.27506-1-mathieu.dolmen@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_main.c

index c92820f079682664cd0c8793f49b2949bbce4e1d..d6b78c200383ed71a96b59a4bf396b5cec992612 100644 (file)
@@ -4125,11 +4125,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;
@@ -4140,9 +4140,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;