From 49f7ba41df994b2245bb341d264b1ec278569ad8 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 increment) found by Clang Analyzer --- src/wtp/binding/ieee80211/wifi_drivers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- src/wtp/binding/ieee80211/wifi_drivers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wtp/binding/ieee80211/wifi_drivers.c b/src/wtp/binding/ieee80211/wifi_drivers.c index 397eaf4..be175aa 100644 --- a/src/wtp/binding/ieee80211/wifi_drivers.c +++ b/src/wtp/binding/ieee80211/wifi_drivers.c @@ -1559,7 +1559,7 @@ uint16_t wifi_wlan_check_capability(struct wifi_wlan* wlan, uint16_t capability) result &= ~IEEE80211_CAPABILITY_SHORTSLOTTIME; } - return capability; + return result; } /* */