]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Remove timer and task only if created
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 10 Mar 2016 22:59:45 +0000 (14:59 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 5 Apr 2016 19:26:09 +0000 (12:26 -0700)
commitfea94561091a32b621ff88c48746dbf62f1c5899
tree63676795edddd31e0dba84f6298f7bdbd5743d68
parentb50f973a02b6a99c9228364295bf69fabc41387c
i40e: Remove timer and task only if created

In some error scenarios, we may find ourselves trying to remove a
non-existent timer or worktask.  This causes the kernel some bit
of consternation, so don't do it.

Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c