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)
commit58184b8ff0786b219772016a50ce07c6b3020846
treeb53943b0771e52b90f98b2d78b40b0b385e80a29
parent23b7b511675669702ad32bf7f92dcf2ae05015ba
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