]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix for unused value issue found by static analysis
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Fri, 14 Jul 2017 13:10:07 +0000 (09:10 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 27 Aug 2017 23:02:16 +0000 (16:02 -0700)
commitd52c41fe39eaf06c7498be804bdd9efb34f093db
tree532a9d761ef68ff706032b74b0a4f87d3a136866
parent87325a74e85808620a6b244d687dbcf03431b0b4
i40e: Fix for unused value issue found by static analysis

This patch fixes an issue where an error return value is
set, but without an immediate exit, the value can be overwritten
by the following code execution.  The condition  at this point
is not fatal, so remove the error assignment and comment the
intent for future code maintainers

Signed-off-by: Carolyn Wyborny <carolyn.wyborny@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