mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-20 19:12:33 +01:00
wiphy: Remove unneeded check
The wiphy attribute should never be repeated by the kernel, so this check is ultimately not needed. This condition can also be easily checked by looking at the iwmon output in case things do go terribly wrong.
This commit is contained in:
parent
d03eeb398c
commit
d86b7404fd
@ -298,9 +298,6 @@ static void wiphy_parse_attributes(struct wiphy *wiphy,
|
|||||||
|
|
||||||
while (l_genl_attr_next(attr, &type, &len, &data)) {
|
while (l_genl_attr_next(attr, &type, &len, &data)) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case NL80211_ATTR_WIPHY:
|
|
||||||
l_warn("Duplicate wiphy attribute");
|
|
||||||
break;
|
|
||||||
case NL80211_ATTR_WIPHY_NAME:
|
case NL80211_ATTR_WIPHY_NAME:
|
||||||
if (len > sizeof(wiphy->name))
|
if (len > sizeof(wiphy->name))
|
||||||
l_warn("Invalid wiphy name attribute");
|
l_warn("Invalid wiphy name attribute");
|
||||||
|
Loading…
Reference in New Issue
Block a user