ice: Fix error return code in ice_init_hw()
authorWei Yongjun <[email protected]>
Wed, 28 Mar 2018 12:50:45 +0000 (12:50 +0000)
committerJeff Kirsher <[email protected]>
Fri, 6 Apr 2018 14:00:09 +0000 (07:00 -0700)
commit63bb4e1ebd9876d250eea24d27a2caf3e0e3302c
tree815af849a7eb9dc97c987c75bafe39b4c653bcec
parent3239534a79ee6f20cffd974173a1e62e0730e8ac
ice: Fix error return code in ice_init_hw()

Fix to return error code ICE_ERR_NO_MEMORY from the alloc error
handling case instead of 0, as done elsewhere in this function.

Fixes: dc49c7723676 ("ice: Get MAC/PHY/link info and scheduler topology")
Signed-off-by: Wei Yongjun <[email protected]>
Acked-by: Anirudh Venkataramanan <[email protected]>
Tested-by: Tony Brelinski <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/ice/ice_common.c