]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4475c1b795776f6175dca71ba2ef839e8d16a0ca
tree7565f4cc0b44a692d0972d930d6f059a24c1ec68
parent7d064bfa0254530bd42ba1110a5a9fbce2735649
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