diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-04-27 11:33:42 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-05-05 23:10:40 +0200 |
commit | 6274115ce9f0c87068761b2ba5b0b2f7d13c17cf (patch) | |
tree | aa91c45eb089e087d74903e5483487b97cbd863c /net/ieee80211/ieee80211_wx.c | |
parent | [PATCH] softmac: deauthentication implies deassociation (diff) | |
download | linux-6274115ce9f0c87068761b2ba5b0b2f7d13c17cf.tar.xz 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/ieee80211_wx.c')
-rw-r--r-- | net/ieee80211/ieee80211_wx.c | 2 |
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) |