mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
mwifiex: remove an unneeded condition
We already know that "wep_key->key_length" is set so there is no need to check again. Also the last curly brace was indented too far. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
3f0267f6f7
commit
97276c10cb
1 changed files with 2 additions and 3 deletions
|
@ -923,9 +923,8 @@ static int mwifiex_sec_ioctl_set_wep_key(struct mwifiex_private *priv,
|
|||
if (encrypt_key->key_disable) {
|
||||
memset(&priv->wep_key[index], 0,
|
||||
sizeof(struct mwifiex_wep_key));
|
||||
if (wep_key->key_length)
|
||||
goto done;
|
||||
}
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (adapter->key_api_major_ver == KEY_API_VER_MAJOR_V2)
|
||||
enc_key = encrypt_key;
|
||||
|
|
Loading…
Add table
Reference in a new issue