From: Jouni Malinen Date: Mon, 20 Mar 2006 03:21:48 +0000 (-0800) Subject: [PATCH] hostap: Remove dead code (duplicated idx != 0) X-Git-Tag: v2.6.17-rc1~994^2^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4f7ecdf0b1b8125fe190247beb0df652829e13cb;p=linux-2.6-omap-h63xx.git [PATCH] hostap: Remove dead code (duplicated idx != 0) The Coverity checker (CID: 58) spotted this duplicated idx != 0 validation for unicast keys in prism2_ioctl_siwencodeext(). Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index f3e0ce1ee03..8b37e824dfc 100644 --- a/drivers/net/wireless/hostap/hostap_ioctl.c +++ b/drivers/net/wireless/hostap/hostap_ioctl.c @@ -3358,10 +3358,6 @@ static int prism2_ioctl_siwencodeext(struct net_device *dev, if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { if (!sta_ptr) local->tx_keyidx = i; - else if (i) { - ret = -EINVAL; - goto done; - } }