ice: Fix potential return of uninitialized value
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 9 Aug 2018 13:29:01 +0000 (06:29 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 23 Aug 2018 18:30:38 +0000 (11:30 -0700)
commitdab0588fb616c1774bbf108eab1749dda4ac6942
tree351a9c54764dcbbd58d4524ea7cbdc749210ddf2
parentc7f2c42b80ed6009f44e355aefc1e40db9485a9d
ice: Fix potential return of uninitialized value

In ice_vsi_setup_[tx|rx]_rings, err is uninitialized which can result in
a garbage value return to the caller. Fix that.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c