mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
net: jme: remove unused initialization of 'rxdesc'
Pointer rxdesc is assigned a value that is never read, it is overwritten by a new assignment inside a while loop hence the initial assignment is redundant and can be removed. Cleans up clang warning: drivers/net/ethernet/jme.c:1074:17: warning: Value stored to 'rxdesc' during its initialization is never read 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
b9a40729e7
commit
f14d244f61
1 changed files with 1 additions and 1 deletions
|
@ -1071,7 +1071,7 @@ static int
|
|||
jme_process_receive(struct jme_adapter *jme, int limit)
|
||||
{
|
||||
struct jme_ring *rxring = &(jme->rxring[0]);
|
||||
struct rxdesc *rxdesc = rxring->desc;
|
||||
struct rxdesc *rxdesc;
|
||||
int i, j, ccnt, desccnt, mask = jme->rx_ring_mask;
|
||||
|
||||
if (unlikely(!atomic_dec_and_test(&jme->rx_cleaning)))
|
||||
|
|
Loading…
Reference in a new issue