net: macb: do not initialize queue variable
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 2 Jul 2020 09:06:00 +0000 (12:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2020 21:22:00 +0000 (14:22 -0700)
Do not initialize queue variable. It is already initialized in for loops.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c

index 7668b6a..c31c15e 100644 (file)
@@ -1467,7 +1467,7 @@ static void macb_hresp_error_task(unsigned long data)
 {
        struct macb *bp = (struct macb *)data;
        struct net_device *dev = bp->dev;
-       struct macb_queue *queue = bp->queues;
+       struct macb_queue *queue;
        unsigned int q;
        u32 ctrl;