]> 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)
commit45f7ca4aef491f356c1831c70e29efc7f7e8d267
tree31804ba7d9930901782e784af4a1cae55686adb7
parentb0eadf797c3faf71fd1fba4a0c41e805ed631c0d
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