Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Jouni Malinen and committed by
John W. Linville
4f7ecdf0 3a1c42ad

-4
-4
drivers/net/wireless/hostap/hostap_ioctl.c
··· 3358 3358 if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { 3359 3359 if (!sta_ptr) 3360 3360 local->tx_keyidx = i; 3361 - else if (i) { 3362 - ret = -EINVAL; 3363 - goto done; 3364 - } 3365 3361 } 3366 3362 3367 3363