staging: rtl8723bs: ioctl_linux: Fix else on next line
authorFranziska Naepelt <franziska.naepelt@googlemail.com>
Sat, 22 Jul 2023 21:57:36 +0000 (23:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 08:04:45 +0000 (10:04 +0200)
Fix the following checkpatch issue:
- ERROR: else should follow close brace '}'

Signed-off-by: Franziska Naepelt <franziska.naepelt@googlemail.com>
Link: https://lore.kernel.org/r/20230722215736.4183-1-franziska.naepelt@googlemail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c

index 40a3157fb73597cfde38a0bb6ae84745155ce32d..b8595b28bceb8dafb39c1528eb00ec3b2e3b4072 100644 (file)
@@ -654,8 +654,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
 
                                psecuritypriv->busetkipkey = true;
 
-                       }
-                       else if (strcmp(param->u.crypt.alg, "CCMP") == 0) {
+                       } else if (strcmp(param->u.crypt.alg, "CCMP") == 0) {
                                psecuritypriv->dot118021XGrpPrivacy = _AES_;
 
                                memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len));