]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Early return in igc_get_ethtool_nfc_entry()
authorAndre Guedes <andre.guedes@intel.com>
Fri, 24 Apr 2020 20:16:08 +0000 (13:16 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 21 May 2020 23:19:15 +0000 (16:19 -0700)
commit9b4e8944828f23e2e7af31c554de55ef65e7aa76
tree49359633cdf7c86993f05418e149e2f9bdcf14dd
parentaa3b09a4e6cd84400301a08698e2fc1e23af5932
igc: Early return in igc_get_ethtool_nfc_entry()

This patch re-writes the second half of igc_ethtool_get_nfc_entry() to
follow the 'return early' pattern seen in other parts of the driver and
removes some duplicate comments.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc_ethtool.c