OSDN Git Service

igc: Change return type from igc_disable_nfc_rule()
authorAndre Guedes <andre.guedes@intel.com>
Fri, 24 Apr 2020 20:16:21 +0000 (13:16 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 23 May 2020 01:21:52 +0000 (18:21 -0700)
commitacda576f72b8a2eed44aa3840561daa0ce837744
tree7565f4cc0b44a692d0972d930d6f059a24c1ec68
parent1894df0ccb6ac7ba8b2c799e7d74b5db1180c518
igc: Change return type from igc_disable_nfc_rule()

None of igc_disable_nfc_rule() callers actually check its returning
value. A closer look at why this function would fail shows that the
only situation is when we try to delete an Ethertype or MAC filter that
doesn't exist.

That situation is very unlikely so we can change igc_del_etype_filter()
and igc_del_mac_filter() logic to "if the filter doesn't exist, we are
done", and keep the logic in igc_disable_nfc_rule() callers simple.

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