Skip to content

Commit

Permalink
e1000e: Delete redundant variable definitions
Browse files Browse the repository at this point in the history
The local variable is not used elsewhere in the function

The clang_analyzer complains as follows:

drivers/net/ethernet/intel/e1000e/ptp.c:241:19 warning

Value stored to 'hw' during its initialization is never read

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
  • Loading branch information
luo penghao authored and intel-lab-lkp committed Nov 11, 2021
1 parent debe436 commit 81faea6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/intel/e1000e/ptp.c
Expand Up @@ -238,7 +238,6 @@ static void e1000e_systim_overflow_work(struct work_struct *work)
{
struct e1000_adapter *adapter = container_of(work, struct e1000_adapter,
systim_overflow_work.work);
struct e1000_hw *hw = &adapter->hw;
struct timespec64 ts;
u64 ns;

Expand Down

0 comments on commit 81faea6

Please sign in to comment.