]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Fix igc_uc_unsync()
authorAndre Guedes <andre.guedes@intel.com>
Wed, 18 Mar 2020 23:00:54 +0000 (16:00 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 19 Apr 2020 18:52:40 +0000 (11:52 -0700)
commit2b5b39e02b5ee5efc56dfa6b0cde17da8020bd6d
tree31804ba7d9930901782e784af4a1cae55686adb7
parente78172fc871d82236fae6ce9a8ca6adab63c4a69
igc: Fix igc_uc_unsync()

In case igc_del_mac_filter() returns error, that error is masked
since the functions always return 0 (success). This patch fixes
igc_uc_unsync() so it returns whatever value igc_del_mac_filter()
returns (0 on success, negative number on error).

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_main.c