mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
hwsim: check if radio name was already set
This was caught by static analysis and shouldn't ever happen.
This commit is contained in:
parent
15c0920777
commit
cd3857f810
@ -639,6 +639,9 @@ static void get_radio_callback(struct l_genl_msg *msg, void *user_data)
|
||||
break;
|
||||
|
||||
case HWSIM_ATTR_RADIO_NAME:
|
||||
if (name)
|
||||
break;
|
||||
|
||||
name = l_strndup(data, len);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user