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)
commit876ea04db7675391baa8011795188e55d154aa4e
tree49359633cdf7c86993f05418e149e2f9bdcf14dd
parent8b9c23cdf04f927d591f3fbc3b846d941557e886
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