net: ethernet: nb8800: remove redundant pointer rxd
authorColin Ian King <colin.king@canonical.com>
Wed, 4 Jul 2018 07:20:20 +0000 (08:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 13:39:10 +0000 (22:39 +0900)
Pointer rxd is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'rxb' 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/aurora/nb8800.c

index e94159507847b33962f99d63561301b924fd2dd1..c8d1f8fa4713401321767218423f6a55375519be 100644 (file)
@@ -304,12 +304,10 @@ static int nb8800_poll(struct napi_struct *napi, int budget)
 
 again:
        do {
-               struct nb8800_rx_buf *rxb;
                unsigned int len;
 
                next = (last + 1) % RX_DESC_COUNT;
 
-               rxb = &priv->rx_bufs[next];
                rxd = &priv->rx_descs[next];
 
                if (!rxd->report)