mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
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>
This commit is contained in:
parent
f4e728ff94
commit
1bd297988b
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user