Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97276c10 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 3f0267f6
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -923,7 +923,6 @@ 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;
		}