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)
commitec74a4715549ed4823df7ad4ecc81a8416b7f6bd
tree817b80836c9a1cebca2f9e908a902c53379b6814
parentb3343a2a2c95b3b7ed4f6596e860c4276ba46217
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