diff options
author | luo penghao <cgel.zte@gmail.com> | 2021-10-18 11:51:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-19 14:48:40 +0300 |
commit | 1bd297988b75c0768e34e983b2a61a6d3dcda999 (patch) | |
tree | abc7737862d7edbb69ca597f28fc52e2fb95034a /drivers/net/ethernet | |
parent | f4e728ff9407757238eea953c449490d6d969fda (diff) | |
download | linux-1bd297988b75c0768e34e983b2a61a6d3dcda999.tar.xz |
e1000e: Remove redundant statement
This assignment statement is meaningless, because the statement
will execute to the tag "set_itr_now".
The clang_analyzer complains as follows:
drivers/net/ethernet/intel/e1000e/netdev.c:2552:3 warning:
Value stored to 'current_itr' is never read.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/netdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c index ff8672ae2b6c..21ec7169b6a1 100644 --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -2549,7 +2549,6 @@ static void e1000_set_itr(struct e1000_adapter *adapter) /* for non-gigabit speeds, just fix the interrupt rate at 4000 */ if (adapter->link_speed != SPEED_1000) { - current_itr = 0; new_itr = 4000; goto set_itr_now; } |