]> 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)
commitdec64b04b16553c916cda9cf44bfcb5a5f0e6457
treeebd3dd4e609022aa9a8bd7d3cdf89ac13ff97dff
parente484ba88a219f754e49268445694b3ec1e905d83
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