[Intel-wired-lan] [PATCH 03/12] igc: Change igc_add_mac_filter() returning value
Brown, Aaron F
aaron.f.brown at intel.com
Tue Mar 31 19:59:20 UTC 2020
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Andre Guedes
> Sent: Wednesday, March 18, 2020 4:01 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH 03/12] 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 at intel.com>
> ---
> drivers/net/ethernet/intel/igc/igc_ethtool.c | 2 --
> drivers/net/ethernet/intel/igc/igc_main.c | 7 ++-----
> 2 files changed, 2 insertions(+), 7 deletions(-)
Tested-by: Aaron Brown <aaron.f.brown at intel.com>
More information about the Intel-wired-lan
mailing list