From e5f1fbd992636c502395dcc6909cb8656cd49e8a Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 22 Jan 2015 10:19:38 +0100 Subject: [PATCH] Fix Dead Store (Dead Assignment) found by Clang Analyzer --- src/wtp/binding/ieee80211/wifi_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- src/wtp/binding/ieee80211/wifi_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wtp/binding/ieee80211/wifi_nl80211.c b/src/wtp/binding/ieee80211/wifi_nl80211.c index 9185a06..062fd14 100644 --- a/src/wtp/binding/ieee80211/wifi_nl80211.c +++ b/src/wtp/binding/ieee80211/wifi_nl80211.c @@ -1663,7 +1663,7 @@ static wifi_global_handle nl80211_global_init(void) { /* Add membership regulatory events */ result = nl80211_get_multicast_id(globalhandle, "nl80211", "regulatory"); if (result >= 0) { - result = nl_socket_add_membership(globalhandle->nl_event, result); + nl_socket_add_membership(globalhandle->nl_event, result); } /* Get nl80211 netlink family */