]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: jme: remove unused initialization of 'rxdesc'
authorColin Ian King <colin.king@canonical.com>
Thu, 1 Feb 2018 16:58:42 +0000 (16:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Feb 2018 19:54:28 +0000 (14:54 -0500)
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>
drivers/net/ethernet/jme.c

index 62d848df26ef8656b4b5c94340a95ac7dd77149d..8a165842fa8558123e611507cd39a00d9c534f86 100644 (file)
@@ -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)))