path: root/drivers/net/ethernet/jme.c
diff options
authorColin Ian King <colin.king@canonical.com>2018-02-01 16:58:42 +0000
committerDavid S. Miller <davem@davemloft.net>2018-02-01 14:54:28 -0500
commitf14d244f6147066c65dd98caa08aab0135ab1cc4 (patch)
tree312c78e9da6e228956f2c31aea8fd4bf14de2600 /drivers/net/ethernet/jme.c
parentb9a40729e73809df073b6f7ec5eba1c12a64f703 (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/jme.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c
index 62d848df26ef..8a165842fa85 100644
--- a/drivers/net/ethernet/jme.c
+++ b/drivers/net/ethernet/jme.c
@@ -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)))