[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 <[email protected]>
Cc: "John W. Linville" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
Adrian Bunk 2006-04-27 02:33:42 -07:00 • committed by John W. Linville
commit 6274115ce9

View file

@ -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)