diff options
author | Andre Guedes <andre.guedes@intel.com> | 2020-04-24 13:16:21 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2020-05-22 18:21:52 -0700 |
commit | acda576f72b8a2eed44aa3840561daa0ce837744 (patch) | |
tree | 7565f4cc0b44a692d0972d930d6f059a24c1ec68 /drivers/net/ethernet/intel/igc/igc_ethtool.c | |
parent | 1894df0ccb6ac7ba8b2c799e7d74b5db1180c518 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_ethtool.c')
0 files changed, 0 insertions, 0 deletions