提交 97276c10 编写于 作者: D Dan Carpenter 提交者: Kalle Valo

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 3f0267f6
...@@ -923,9 +923,8 @@ static int mwifiex_sec_ioctl_set_wep_key(struct mwifiex_private *priv, ...@@ -923,9 +923,8 @@ static int mwifiex_sec_ioctl_set_wep_key(struct mwifiex_private *priv,
if (encrypt_key->key_disable) { if (encrypt_key->key_disable) {
memset(&priv->wep_key[index], 0, memset(&priv->wep_key[index], 0,
sizeof(struct mwifiex_wep_key)); 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) if (adapter->key_api_major_ver == KEY_API_VER_MAJOR_V2)
enc_key = encrypt_key; enc_key = encrypt_key;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册