]> 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)
commitfc10da76af3cd70a51803a8d57ed9b52c3dce860
tree7565f4cc0b44a692d0972d930d6f059a24c1ec68
parentc6e99f8277c702fb397cf70cf4c4245f74dd0dc9
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