]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ethernet: mtk-star-emac: remove unused variable
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 29 May 2020 08:26:48 +0000 (10:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 May 2020 19:42:04 +0000 (12:42 -0700)
The desc pointer is set but not used. Remove it.

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 8c62308a9f55 ("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_star_emac.c

index 8596ca0e60eb1c318bc1cf0f6ba3eefd7eecbbda..7df35872c107d23f076e407954cea4bf177c6073 100644 (file)
@@ -746,15 +746,12 @@ mtk_star_ring_free_skbs(struct mtk_star_priv *priv, struct mtk_star_ring *ring,
                                           struct mtk_star_ring_desc_data *))
 {
        struct mtk_star_ring_desc_data desc_data;
-       struct mtk_star_ring_desc *desc;
        int i;
 
        for (i = 0; i < MTK_STAR_RING_NUM_DESCS; i++) {
                if (!ring->dma_addrs[i])
                        continue;
 
-               desc = &ring->descs[i];
-
                desc_data.dma_addr = ring->dma_addrs[i];
                desc_data.skb = ring->skbs[i];