From: Sayyad Abid <sayyad.abid16@gmail.com>
To: linux-staging@lists.linux.dev
Cc: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org, sayyad.abid16@gmail.com
Subject: [PATCH 5/6] staging: rtl8723bs: fix switch and case to be at same indent
Date: Sun, 8 Sep 2024 15:41:09 +0530 [thread overview]
Message-ID: <20240908101110.1028931-6-sayyad.abid16@gmail.com> (raw)
In-Reply-To: <20240908101110.1028931-1-sayyad.abid16@gmail.com>
This patch fixes the indentation for the switch case statements. Aligns
them with right indentation.
Signed-off-by: Sayyad Abid <sayyad.abid16@gmail.com>
---
.../staging/rtl8723bs/include/rtw_security.h | 70 +++++++++----------
1 file changed, 35 insertions(+), 35 deletions(-)
diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/staging/rtl8723bs/include/rtw_security.h
index 1e5e7f52f8da..740c8504cba7 100644
--- a/drivers/staging/rtl8723bs/include/rtw_security.h
+++ b/drivers/staging/rtl8723bs/include/rtw_security.h
@@ -171,47 +171,47 @@ 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)
#define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\
do {\
switch (encrypt) {\
- case _WEP40_:\
- case _WEP104_:\
- iv_len = 4;\
- icv_len = 4;\
- break;\
- case _TKIP_:\
- iv_len = 8;\
- icv_len = 4;\
- break;\
- case _AES_:\
- iv_len = 8;\
- icv_len = 8;\
- break;\
- case _SMS4_:\
- iv_len = 18;\
- icv_len = 16;\
- break;\
- default:\
- iv_len = 0;\
- icv_len = 0;\
- break;\
+ case _WEP40_:\
+ case _WEP104_:\
+ iv_len = 4;\
+ icv_len = 4;\
+ break;\
+ case _TKIP_:\
+ iv_len = 8;\
+ icv_len = 4;\
+ break;\
+ case _AES_:\
+ iv_len = 8;\
+ icv_len = 8;\
+ break;\
+ case _SMS4_:\
+ iv_len = 18;\
+ icv_len = 16;\
+ break;\
+ default:\
+ iv_len = 0;\
+ icv_len = 0;\
+ break;\
} \
} while (0)
--
2.39.2
next prev parent reply other threads:[~2024-09-08 10:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-08 10:11 [PATCH 0/6] staging: rtl8723bs: Fix various coding style issues Sayyad Abid
2024-09-08 10:11 ` [PATCH 1/6] staging: rtl8723bs: fix use of tab wherever possible Sayyad Abid
2024-09-08 20:23 ` Philipp Hortmann
2024-09-09 7:57 ` Sayyad Abid
2024-09-08 10:11 ` [PATCH 2/6] staging: rtl8723bs: fix position of opening braces Sayyad Abid
2024-09-08 20:33 ` Philipp Hortmann
2024-09-09 7:59 ` Sayyad Abid
2024-09-08 10:11 ` [PATCH 3/6] staging: rtl8723bs: fix space before tabs Sayyad Abid
2024-09-08 10:11 ` [PATCH 4/6] staging: rtl8723bs: fix comment with a trailing */ on a separate line Sayyad Abid
2024-09-08 20:26 ` Philipp Hortmann
2024-09-09 7:58 ` Sayyad Abid
2024-09-08 10:11 ` Sayyad Abid [this message]
2024-09-08 10:11 ` [PATCH 6/6] staging: rtl8723bs: fix no space before tab and statement start on tabstop Sayyad Abid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240908101110.1028931-6-sayyad.abid16@gmail.com \
--to=sayyad.abid16@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=philipp.g.hortmann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®