i40e: clean event descriptor before use
authorShannon Nelson <shannon.nelson@intel.com>
Fri, 15 Jan 2016 22:33:20 +0000 (14:33 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Feb 2016 07:39:58 +0000 (23:39 -0800)
commit73b03f9848aa7556c8a10fd6ad4e64254e493445
treeb11dd1442dc68e288d2faf20886ba5b2e0c6e340
parent9b9344f7ce19c5c481f203a0af3e120b965afcd9
i40e: clean event descriptor before use

In one obscure corner case, it was possible to clear the NVM update wait
flag when no update_done message was actually received.  This patch
cleans the event descriptor before use, and moves the opcode check to
where it won't get done if there was no event to clean.

Also update copyright year in file headers.

Change-ID: I68bbc41965e93f4adf07cbe98b9dfd63d41509a4
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_adminq.c
drivers/net/ethernet/intel/i40evf/i40e_adminq.c