mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 08:18:03 +02:00
platform: fix return value for no-firmware case
The function returns 'gboolean' so it shouldn't be returning an enum, but it should instead set the platform error and return FALSE.
This commit is contained in:
parent
b294a1ef63
commit
7c5bd0c64d
1 changed files with 4 additions and 2 deletions
|
|
@ -1120,8 +1120,10 @@ link_change (NMPlatform *platform, int ifindex, struct rtnl_link *change)
|
||||||
* This is basically the same check as in the original code and could
|
* This is basically the same check as in the original code and could
|
||||||
* potentially be improved.
|
* potentially be improved.
|
||||||
*/
|
*/
|
||||||
if (nle == -NLE_OBJ_NOTFOUND)
|
if (nle == -NLE_OBJ_NOTFOUND) {
|
||||||
return NM_PLATFORM_ERROR_NO_FIRMWARE;
|
platform->error = NM_PLATFORM_ERROR_NO_FIRMWARE;
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return refresh_object (platform, (struct nl_object *) rtnllink, nle);
|
return refresh_object (platform, (struct nl_object *) rtnllink, nle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue