From d86b7404fd1e2c5a475080a8bf39ca2c045ccc25 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 7 Mar 2017 09:57:40 -0600 Subject: [PATCH] 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. --- src/wiphy.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/wiphy.c b/src/wiphy.c index e5660ee9..ea363cfb 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -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");