diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-04 16:17:15 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-12-11 13:16:50 +0200 |
commit | 97276c10cb45380ba5d5772b616fc33b55b5bf40 (patch) | |
tree | 2dfcc7b52374ebbbc55646b579cc78fb2548c006 /drivers | |
parent | 3f0267f6f76d56285095f88a8908daf8be0fe56b (diff) | |
download | linux-97276c10cb45380ba5d5772b616fc33b55b5bf40.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/sta_ioctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c b/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c index a6c8a4f7bfe9..80f50645b594 100644 --- a/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c @@ -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; |