cxgb4: remove redundant assignment to hdr_len
authorColin Ian King <colin.king@canonical.com>
Mon, 11 Nov 2019 12:44:13 +0000 (12:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 06:04:27 +0000 (22:04 -0800)
Variable hdr_len is being assigned a value that is never read.
The assignment is redundant and hence can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c

index e346830ebca94b43f9f2c15d9e19e5181a243bea..09059adc3067eb60eb822467b93343a6073771f1 100644 (file)
@@ -3810,7 +3810,6 @@ int cxgb4_ethofld_rx_handler(struct sge_rspq *q, const __be64 *rsp,
                                      eosw_txq->state ==
                                      CXGB4_EO_STATE_FLOWC_CLOSE_REPLY) &&
                                     eosw_txq->cidx == eosw_txq->flowc_idx)) {
-                               hdr_len = skb->len;
                                flits = DIV_ROUND_UP(skb->len, 8);
                                if (eosw_txq->state ==
                                    CXGB4_EO_STATE_FLOWC_OPEN_REPLY)