i40e: use common failure flow
authorJesse Brandeburg <[email protected]>
Fri, 13 Sep 2013 08:23:18 +0000 (08:23 +0000)
committerJeff Kirsher <[email protected]>
Fri, 27 Sep 2013 11:50:46 +0000 (04:50 -0700)
commit93bc73b8273e40d8202764a1096ce59c5f7f7c0c
tree81efe3863996949566f02b72b5c47bd6c975f258
parent5aa3a44918db13257ade0bb1caf662f7815de357
i40e: use common failure flow

As mentioned by Joe Perches, we should be using
foo = alloc(...)
if (!foo)
return -ENOMEM;

return 0;

Signed-off-by: Jesse Brandeburg <[email protected]>
CC: Joe Perches <[email protected]>
Tested-by: Kavindya Deegala <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/i40e/i40e_main.c