net: tehuti: remove redundant pointer skb
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Jul 2018 09:55:49 +0000 (10:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 10:33:39 +0000 (19:33 +0900)
Pointer skb is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'skb' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/tehuti/tehuti.c

index 163d8d16bc245b48a10390d7706b21fd603489a4..dc966ddb6d815038b487f2edd05279e9397c30e7 100644 (file)
@@ -1151,7 +1151,6 @@ static void bdx_recycle_skb(struct bdx_priv *priv, struct rxd_desc *rxdd)
        struct rx_map *dm;
        struct rxf_fifo *f;
        struct rxdb *db;
-       struct sk_buff *skb;
        int delta;
 
        ENTER;
@@ -1161,7 +1160,6 @@ static void bdx_recycle_skb(struct bdx_priv *priv, struct rxd_desc *rxdd)
        DBG("db=%p f=%p\n", db, f);
        dm = bdx_rxdb_addr_elem(db, rxdd->va_lo);
        DBG("dm=%p\n", dm);
-       skb = dm->skb;
        rxfd = (struct rxf_desc *)(f->m.va + f->m.wptr);
        rxfd->info = CPU_CHIP_SWAP32(0x10003);  /* INFO=1 BC=3 */
        rxfd->va_lo = rxdd->va_lo;