mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 05:39:24 +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;
|
break;
|
||||||
|
|
||||||
case HWSIM_ATTR_RADIO_NAME:
|
case HWSIM_ATTR_RADIO_NAME:
|
||||||
|
if (name)
|
||||||
|
break;
|
||||||
|
|
||||||
name = l_strndup(data, len);
|
name = l_strndup(data, len);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user