summaryrefslogtreecommitdiffstats
path: root/net/ieee80211
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-04-27 02:33:42 -0700
committerJohn W. Linville <linville@tuxdriver.com>2006-05-05 17:10:40 -0400
commit6274115ce9f0c87068761b2ba5b0b2f7d13c17cf (patch)
treeaa91c45eb089e087d74903e5483487b97cbd863c /net/ieee80211
parent6d92f83ffafe8e2ce105c3ec5696c62d6fcebcee (diff)
downloadlinux-6274115ce9f0c87068761b2ba5b0b2f7d13c17cf.tar.gz
linux-6274115ce9f0c87068761b2ba5b0b2f7d13c17cf.tar.bz2
linux-6274115ce9f0c87068761b2ba5b0b2f7d13c17cf.zip
[PATCH] ieee80211_wx.c: remove dead code
Since sec->key_sizes[] is an u8, len can't be < 0. Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Cc: "John W. Linville" <linville@tuxdriver.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211')
-rw-r--r--net/ieee80211/ieee80211_wx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee80211/ieee80211_wx.c b/net/ieee80211/ieee80211_wx.c
index 0ea55cb5f172..a78c4f845f66 100644
--- a/net/ieee80211/ieee80211_wx.c
+++ b/net/ieee80211/ieee80211_wx.c
@@ -503,7 +503,7 @@ int ieee80211_wx_get_encode(struct ieee80211_device *ieee,
len = sec->key_sizes[key];
memcpy(keybuf, sec->keys[key], len);
- erq->length = (len >= 0 ? len : 0);
+ erq->length = len;
erq->flags |= IW_ENCODE_ENABLED;
if (ieee->open_wep)