Re: [PATCH] staging: rtl8723bs: Fix indenation and coding style issues in rtw_securtiy.h

From: Greg KH
Date: Wed Sep 11 2024 - 09:47:33 EST


On Wed, Sep 11, 2024 at 07:05:50PM +0530, abid-sayyad wrote:
> This patch improves the code readability and improves the presentation
> makes it look less scattered.
>
> Signed-off-by: abid-sayyad <sayyad.abid16@xxxxxxxxx>
> ---
> .../staging/rtl8723bs/include/rtw_security.h | 31 +++++++++----------
> 1 file changed, 15 insertions(+), 16 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/staging/rtl8723bs/include/rtw_security.h
> index c3e47d52687f..ae65d684a26d 100644
> --- a/drivers/staging/rtl8723bs/include/rtw_security.h
> +++ b/drivers/staging/rtl8723bs/include/rtw_security.h
> @@ -171,27 +171,26 @@ 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)\
> - {\
> + switch (encrypt) {\
> case _WEP40_:\
> case _WEP104_:\
> iv_len = 4;\
> --
> 2.39.2
>

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him
a patch that has triggered this response. He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created. Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- Your patch did many different things all at once, making it difficult
to review. All Linux kernel patches need to only do one thing at a
time. If you need to do multiple things (such as clean up all coding
style issues in a file/driver), do it in a sequence of patches, each
one doing only one thing. This will make it easier to review the
patches to ensure that they are correct, and to help alleviate any
merge issues that larger patches can cause.

- You did not specify a description of why the patch is needed, or
possibly, any description at all, in the email body. Please read the
section entitled "The canonical patch format" in the kernel file,
Documentation/process/submitting-patches.rst for what is needed in
order to properly describe the change.

- You did not write a descriptive Subject: for the patch, allowing Greg,
and everyone else, to know what this patch is all about. Please read
the section entitled "The canonical patch format" in the kernel file,
Documentation/process/submitting-patches.rst for what a proper
Subject: line should look like.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot