mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
manager: Simplify logic
This commit is contained in:
parent
72158e66da
commit
5a28504d9e
@ -55,15 +55,13 @@ static void manager_new_wiphy_event(struct l_genl_msg *msg)
|
||||
return;
|
||||
|
||||
wiphy = wiphy_find(id);
|
||||
if (wiphy) {
|
||||
wiphy_update_from_genl(wiphy, msg);
|
||||
if (!wiphy) {
|
||||
wiphy = wiphy_create(id, name);
|
||||
|
||||
if (!wiphy)
|
||||
return;
|
||||
}
|
||||
|
||||
wiphy = wiphy_create(id, name);
|
||||
if (!wiphy) /* Possibly blacklisted */
|
||||
return;
|
||||
|
||||
wiphy_update_from_genl(wiphy, msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user