mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-18 01:59:31 +01:00
netdev: Fix unneeded error negation
device.c expects errors to be negative for both set_powered and set_4addr.
This commit is contained in:
parent
8fdce84abb
commit
7877be328b
@ -256,7 +256,7 @@ static void netdev_set_powered_result(int error, uint16_t type,
|
||||
if (!cb_data)
|
||||
return;
|
||||
|
||||
cb_data->callback(cb_data->netdev, -error, cb_data->user_data);
|
||||
cb_data->callback(cb_data->netdev, error, cb_data->user_data);
|
||||
}
|
||||
|
||||
static void netdev_set_powered_destroy(void *user_data)
|
||||
@ -3517,7 +3517,7 @@ static void netdev_set_4addr_cb(struct l_genl_msg *msg, void *user_data)
|
||||
if (!error)
|
||||
cb_data->netdev->use_4addr = cb_data->value;
|
||||
|
||||
cb_data->callback(cb_data->netdev, -error, cb_data->user_data);
|
||||
cb_data->callback(cb_data->netdev, error, cb_data->user_data);
|
||||
}
|
||||
|
||||
static void netdev_set_4addr_destroy(void *user_data)
|
||||
|
Loading…
Reference in New Issue
Block a user