]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: clean up the condition for turning on/off the laser
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 20 Sep 2012 03:33:56 +0000 (03:33 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 30 Oct 2012 05:31:59 +0000 (22:31 -0700)
commitb203b51c1d28929dc1d57f8996f0796061d16f5d
tree817b80836c9a1cebca2f9e908a902c53379b6814
parenta1d20df06a6d41e1eda96584ceb41ee9c84cc5a3
ixgbe: clean up the condition for turning on/off the laser

This patch simplifies the check for calling en/disable_tx_laser() function
pointer. The pointer is only set on parts that can use it.

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_main.c