e1000e: cleanup - check return values consistently
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 31 Jan 2012 06:37:27 +0000 (06:37 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 7 Feb 2012 12:10:07 +0000 (04:10 -0800)
commit9e2d7657e2a8fb40f732563dffb05151ea2d7e01
tree73dfa5a48cffa79c6bdc54994a5fcb71c7a5aeee
parentf36bb6cacd3bcbab9605e06f585ee8f1ea450876
e1000e: cleanup - check return values consistently

The majority of the e1000e code checks most function return values using a
test like 'if (ret_val)' or 'if (!ret_val)' but there are a few instances
of 'if (ret_val == 0)'.  This patch converts the latter to the former for
consistency.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/ethtool.c
drivers/net/ethernet/intel/e1000e/ich8lan.c