3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

netdev: remove 'req' from netdev_mac_change_failed

The request object was never being used
This commit is contained in:
James Prestwood 2022-09-06 12:22:07 -07:00 committed by Denis Kenzior
parent 45f95ecf35
commit 483d4f2e61

View File

@ -3584,8 +3584,7 @@ failed:
return -EIO; return -EIO;
} }
static void netdev_mac_change_failed(struct netdev *netdev, static void netdev_mac_change_failed(struct netdev *netdev, int error)
struct rtnl_data *req, int error)
{ {
l_error("Error setting mac address on %d: %s", netdev->index, l_error("Error setting mac address on %d: %s", netdev->index,
strerror(-error)); strerror(-error));
@ -3639,7 +3638,7 @@ static void netdev_mac_power_up_cb(int error, uint16_t type,
if (error) { if (error) {
l_error("Error changing per-network MAC on interface %u: %s", l_error("Error changing per-network MAC on interface %u: %s",
netdev->index, strerror(-error)); netdev->index, strerror(-error));
netdev_mac_change_failed(netdev, req, error); netdev_mac_change_failed(netdev, error);
return; return;
} }
@ -3665,7 +3664,7 @@ static void netdev_mac_power_down_cb(int error, uint16_t type,
if (error) { if (error) {
l_error("Error taking interface %u down for per-network MAC " l_error("Error taking interface %u down for per-network MAC "
"generation: %s", netdev->index, strerror(-error)); "generation: %s", netdev->index, strerror(-error));
netdev_mac_change_failed(netdev, req, error); netdev_mac_change_failed(netdev, error);
return; return;
} }
@ -3674,7 +3673,7 @@ static void netdev_mac_power_down_cb(int error, uint16_t type,
netdev_mac_power_up_cb, req, netdev_mac_power_up_cb, req,
netdev_mac_destroy); netdev_mac_destroy);
if (!netdev->mac_change_cmd_id) { if (!netdev->mac_change_cmd_id) {
netdev_mac_change_failed(netdev, req, -EIO); netdev_mac_change_failed(netdev, -EIO);
return; return;
} }