diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-05-08 23:58:10 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-05-08 22:46:51 -0700 |
commit | 5eb2bcf247de02b92749fe6a6b342f6393ca3f86 (patch) | |
tree | 8f238449c18eaf4a9a3ca03ba95a8d6664661352 /drivers/net/ethernet | |
parent | 6a9c9548ee204882d196fdbc95f689e1d0fd00aa (diff) | |
download | linux-5eb2bcf247de02b92749fe6a6b342f6393ca3f86.tar.gz linux-5eb2bcf247de02b92749fe6a6b342f6393ca3f86.tar.bz2 linux-5eb2bcf247de02b92749fe6a6b342f6393ca3f86.zip |
net: lio_core: remove redundant assignment to variable tx_done
The variable tx_done is being assigned with a value that is never read
as the function returns a few statements later. The assignment is
redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/lio_core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net/ethernet/cavium/liquidio/lio_core.c index d7e805749a5b..e40c64b79f66 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_core.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_core.c @@ -782,7 +782,6 @@ static int liquidio_napi_poll(struct napi_struct *napi, int budget) if ((work_done < budget && tx_done) || (iq && iq->pkt_in_done >= MAX_REG_CNT) || (droq->pkt_count >= MAX_REG_CNT)) { - tx_done = 1; napi_complete_done(napi, work_done); octeon_enable_irq(droq->oct_dev, droq->q_no); |