]> 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)
commitb0eadf797c3faf71fd1fba4a0c41e805ed631c0d
treeb53943b0771e52b90f98b2d78b40b0b385e80a29
parent0764240317b43f86175074c610e404e2af7687aa
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