瀏覽代碼

[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 <jkmaline@cc.hut.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Jouni Malinen 19 年之前
父節點
當前提交
4f7ecdf0b1
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      drivers/net/wireless/hostap/hostap_ioctl.c

+ 0 - 4
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;
-		}
 	}