]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJack Vogel <jack.vogel@oracle.com>
Tue, 10 Oct 2017 21:15:25 +0000 (14:15 -0700)
commit1d5d647e7898aea4a625906642354ee8ac4c4c7d
treeb63566c2ff46fc0a2c6441c8d25209c0bdedfa94
parent0cea874d4a08cc7fc3427c3f4b4f8b166521f45d
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>
Orabug: 26785018
(cherry picked from commit 19279235bea221798e3307a8bec2c02559cab0c5)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c