]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: include: Fix indent for switch block in rtw_security.h
authorSayyad Abid <sayyad.abid16@gmail.com>
Thu, 12 Sep 2024 04:04:04 +0000 (09:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Sep 2024 05:31:21 +0000 (07:31 +0200)
This improves code readability by ensuring consistent formatting.

Reported by `checkpatch.pl`:
WARNING: switch blocks should be indented with a single tab.

Signed-off-by: Sayyad Abid <sayyad.abid16@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240912040409.3315067-4-sayyad.abid16@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/rtw_security.h

index 74613ad9a371b12f1f586bd8da2582a30092cf19..ee4b5c5804fb79fb8a93dc86d28df990fe60c394 100644 (file)
@@ -171,20 +171,20 @@ struct security_priv {
 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\
 do {\
        switch (psecuritypriv->dot11AuthAlgrthm) {\
-               case dot11AuthAlgrthm_Open:\
-               case dot11AuthAlgrthm_Shared:\
-               case dot11AuthAlgrthm_Auto:\
-                       encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\
-                       break;\
-               case dot11AuthAlgrthm_8021X:\
-                       if (bmcst)\
-                               encry_algo = (u8)psecuritypriv->dot118021XGrpPrivacy;\
-                       else\
-                               encry_algo = (u8)psta->dot118021XPrivacy;\
-                       break;\
-            case dot11AuthAlgrthm_WAPI:\
-                    encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\
-                    break;\
+       case dot11AuthAlgrthm_Open:\
+       case dot11AuthAlgrthm_Shared:\
+       case dot11AuthAlgrthm_Auto:\
+               encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\
+               break;\
+       case dot11AuthAlgrthm_8021X:\
+               if (bmcst)\
+                       encry_algo = (u8)psecuritypriv->dot118021XGrpPrivacy;\
+               else\
+                       encry_algo = (u8)psta->dot118021XPrivacy;\
+               break;\
+       case dot11AuthAlgrthm_WAPI:\
+               encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\
+               break;\
        } \
 } while (0)