mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sayyad Abid <sayyad.abid16@gmail.com>
To: linux-staging@lists.linux.dev
Cc: gregkh@linuxfoundation.org, guilherme@puida.xyz,
	philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org,
	Sayyad Abid <sayyad.abid16@gmail.com>
Subject: [PATCH v2 2/8] staging: rtl8723bs: include: Fix indent for switch case in rtw_security.h
Date: Thu, 12 Sep 2024 09:34:03 +0530	[thread overview]
Message-ID: <20240912040409.3315067-3-sayyad.abid16@gmail.com> (raw)
In-Reply-To: <20240912040409.3315067-1-sayyad.abid16@gmail.com>

This change ensures proper formatting for better readability and
maintainability.

Reported by `checkpatch.pl`:
WARNING: switch and case statements should be indented with tabs.

Signed-off-by: Sayyad Abid <sayyad.abid16@gmail.com>
---
 .../staging/rtl8723bs/include/rtw_security.h  | 42 +++++++++----------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/staging/rtl8723bs/include/rtw_security.h
index 953076667b4d..74613ad9a371 100644
--- a/drivers/staging/rtl8723bs/include/rtw_security.h
+++ b/drivers/staging/rtl8723bs/include/rtw_security.h
@@ -191,27 +191,27 @@ do {\
 #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


  parent reply	other threads:[~2024-09-12  4:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-12  4:04 [PATCH v2 0/8] staging: rtl8723bs: Fix coding style incosistencies " Sayyad Abid
2024-09-12  4:04 ` [PATCH v2 1/8] staging: rtl8723bs: include: Fix open brace position " Sayyad Abid
2024-09-12  4:04 ` Sayyad Abid [this message]
2024-09-12  4:04 ` [PATCH v2 3/8] staging: rtl8723bs: include: Fix indent for switch block " Sayyad Abid
2024-09-12  4:04 ` [PATCH v2 4/8] staging: rtl8723bs: include: Fix use of tabs for indent " Sayyad Abid
2024-09-12  4:04 ` [PATCH v2 5/8] staging: rtl8723bs: include: Fix indent for struct _byte_ " Sayyad Abid
2024-09-12  4:04 ` [PATCH v2 6/8] staging: rtl8723bs: include: Fix indent for else block struct " Sayyad Abid
2024-09-12  4:04 ` [PATCH v2 7/8] staging: rtl8723bs: include: Fix trailing */ position " Sayyad Abid
2024-09-12  4:04 ` [PATCH v2 8/8] staging: rtl8723bs: include: Remove spaces before tabs " Sayyad Abid
2024-09-12 20:01 ` [PATCH v2 0/8] staging: rtl8723bs: Fix coding style incosistencies " Philipp Hortmann

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=20240912040409.3315067-3-sayyad.abid16@gmail.com \
    --to=sayyad.abid16@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=guilherme@puida.xyz \
    --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®