3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-20 10:52: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:
Denis Kenzior 2017-03-07 09:57:40 -06:00
parent d03eeb398c
commit d86b7404fd

View File

@ -298,9 +298,6 @@ static void wiphy_parse_attributes(struct wiphy *wiphy,
while (l_genl_attr_next(attr, &type, &len, &data)) {
switch (type) {
case NL80211_ATTR_WIPHY:
l_warn("Duplicate wiphy attribute");
break;
case NL80211_ATTR_WIPHY_NAME:
if (len > sizeof(wiphy->name))
l_warn("Invalid wiphy name attribute");