]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Change igc_add_mac_filter() returning value
authorAndre Guedes <andre.guedes@intel.com>
Wed, 18 Mar 2020 23:00:53 +0000 (16:00 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 19 Apr 2020 18:46:47 +0000 (11:46 -0700)
commite78172fc871d82236fae6ce9a8ca6adab63c4a69
treeb53943b0771e52b90f98b2d78b40b0b385e80a29
parentfac1b4155daef8aa8fb777fdbbb14338a6f9b9c6
igc: Change igc_add_mac_filter() returning value

In case of success, igc_add_mac_filter() returns the index in
adapter->mac_table where the requested filter was added. This
information, however, is not used by any caller of that function.
In fact, callers have extra code just to handle this returning
index as 0 (success).

So this patch changes the function to return 0 on success instead,
and cleans up the extra code.

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
drivers/net/ethernet/intel/igc/igc_main.c