ixgbe: cleanup error checking in ixgbe_identify_sfp_module_generic()
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 18 Jan 2013 02:17:11 +0000 (02:17 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 16 Feb 2013 07:28:15 +0000 (23:28 -0800)
commit51d0420b0ad9f0a9972165fef551628bcc95ee87
treeebd3dd4e609022aa9a8bd7d3cdf89ac13ff97dff
parentd0310dc415a670ae2b2e27076b4685d988830479
ixgbe: cleanup error checking in ixgbe_identify_sfp_module_generic()

This patch replaces instances where a return code from i2c operations
were checked against a list of error codes with a much simpler
if ( status != 0 ) check.

Some whitespace cleanups included.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c