net: ethernet: nb8800: remove redundant pointer rxd
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>
This commit is contained in:
parent
371b4fc33b
commit
5b9f78ecdf
|
@ -304,12 +304,10 @@ static int nb8800_poll(struct napi_struct *napi, int budget)
|
||||||
|
|
||||||
again:
|
again:
|
||||||
do {
|
do {
|
||||||
struct nb8800_rx_buf *rxb;
|
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
|
|
||||||
next = (last + 1) % RX_DESC_COUNT;
|
next = (last + 1) % RX_DESC_COUNT;
|
||||||
|
|
||||||
rxb = &priv->rx_bufs[next];
|
|
||||||
rxd = &priv->rx_descs[next];
|
rxd = &priv->rx_descs[next];
|
||||||
|
|
||||||
if (!rxd->report)
|
if (!rxd->report)
|
||||||
|
|
Loading…
Reference in New Issue