]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c8652303f1c92a63f468491366c6d7de6634eb3
treeebd3dd4e609022aa9a8bd7d3cdf89ac13ff97dff
parenta3851b9b3d8bfc211054ad54203d759605ffaf05
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