From: Colin Ian King Date: Thu, 1 Feb 2018 16:58:42 +0000 (+0000) Subject: net: jme: remove unused initialization of 'rxdesc' X-Git-Tag: v4.19~1663^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f14d244f6147066c65dd98caa08aab0135ab1cc4;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c index 62d848d..8a16584 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)))