Commit e7a9c7b5 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: rtl8192u: correct placement of else if



Move 'else if' to the same line as the closing brace of the
corresponding 'if' to follow kernel coding style.

Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200919150823.16923-2-straube.linux@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c4309727
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -561,9 +561,7 @@ static int r8192_wx_set_enc(struct net_device *dev,
				zero_addr[key_idx],
				zero_addr[key_idx],
				0,                      /* DefaultKey */
				0,                      /* DefaultKey */
				hwkey);                 /* KeyContent */
				hwkey);                 /* KeyContent */
		}
		} else if (wrqu->encoding.length == 0xd) {

		else if (wrqu->encoding.length == 0xd) {
			ieee->pairwise_key_type = KEY_TYPE_WEP104;
			ieee->pairwise_key_type = KEY_TYPE_WEP104;
			EnableHWSecurityConfig8192(dev);
			EnableHWSecurityConfig8192(dev);