提交 09b547a7 编写于 作者: B Bartosz Golaszewski 提交者: David S. Miller

net: ethernet: mtk-star-emac: remove unused variable

The desc pointer is set but not used. Remove it.
Reported-by: Nkbuild test robot <lkp@intel.com>
Fixes: 8c7bd5a4 ("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cdde95bc
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册