diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-11-11 12:44:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-11 22:04:27 -0800 |
commit | 29711306ce971d55903a4a2de7ac5d051d4a8306 (patch) | |
tree | db1b19a2f139e7c483116b604f98e59f4222d65c /drivers/net/ethernet/chelsio | |
parent | c33fdc3453313137f8740a227525ed518bc68e28 (diff) | |
download | linux-29711306ce971d55903a4a2de7ac5d051d4a8306.tar.bz2 |
cxgb4: remove redundant assignment to hdr_len
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>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/sge.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c index e346830ebca9..09059adc3067 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c @@ -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) |