diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-05-29 11:26:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-29 22:42:04 +0300 |
commit | 09b547a7996e77d4141de27c1657d7c3adcb478e (patch) | |
tree | 24f4088025489327bd69699024cd9d8bf4989f7a | |
parent | cdde95bc8952b57bc446fb90278a8ba83dd57c6f (diff) | |
download | linux-09b547a7996e77d4141de27c1657d7c3adcb478e.tar.xz |
net: ethernet: mtk-star-emac: remove unused variable
The desc pointer is set but not used. Remove it.
Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_star_emac.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_star_emac.c b/drivers/net/ethernet/mediatek/mtk_star_emac.c index 8596ca0e60eb..7df35872c107 100644 --- a/drivers/net/ethernet/mediatek/mtk_star_emac.c +++ b/drivers/net/ethernet/mediatek/mtk_star_emac.c @@ -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]; |