* [PATCH net-next] staging: rtl8723bs: Delete unnecessary braces for single statement blocks
@ 2024-08-01 15:51 jiwonaid0
2024-08-02 5:45 ` Philipp Hortmann
0 siblings, 1 reply; 2+ messages in thread
From: jiwonaid0 @ 2024-08-01 15:51 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, jiwonaid0
From: Jiwon Kim <jiwonaid0@gmail.com>
Deleted braces {} for single statement blocks.
Addressed scripts/checkpatch.pl warning.
Signed-off-by: Jiwon Kim <jiwonaid0@gmail.com>
---
drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
index 1eeabfffd6d2..e0736707a211 100644
--- a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
@@ -144,9 +144,8 @@ static int rtw_mlcst2unicst(struct adapter *padapter, struct sk_buff *skb)
psta = list_entry(plist, struct sta_info, asoc_list);
stainfo_offset = rtw_stainfo_offset(pstapriv, psta);
- if (stainfo_offset_valid(stainfo_offset)) {
+ if (stainfo_offset_valid(stainfo_offset))
chk_alive_list[chk_alive_num++] = stainfo_offset;
- }
}
spin_unlock_bh(&pstapriv->asoc_list_lock);
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] staging: rtl8723bs: Delete unnecessary braces for single statement blocks
2024-08-01 15:51 [PATCH net-next] staging: rtl8723bs: Delete unnecessary braces for single statement blocks jiwonaid0
@ 2024-08-02 5:45 ` Philipp Hortmann
0 siblings, 0 replies; 2+ messages in thread
From: Philipp Hortmann @ 2024-08-02 5:45 UTC (permalink / raw)
To: jiwonaid0, gregkh; +Cc: linux-staging, linux-kernel
On 8/1/24 17:51, jiwonaid0@gmail.com wrote:
> From: Jiwon Kim <jiwonaid0@gmail.com>
please omit the previous line as it is not required.
>
> Deleted braces {} for single statement blocks.
>
> Addressed scripts/checkpatch.pl warning.
>
Please do not add extra empty lines in the description when not
required. Consider that we have a lot of commits and it is most wanted
that the description is short.
It is not required to add the name of the tool who found this, but it
can be named. Much more important is a good description why this change
makes sense...
For example:
... to shorten code.
... to improve readability.
Use present in the description. So Deleted should be Delete.
> Signed-off-by: Jiwon Kim <jiwonaid0@gmail.com>
> ---
> drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
> index 1eeabfffd6d2..e0736707a211 100644
> --- a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
> +++ b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
> @@ -144,9 +144,8 @@ static int rtw_mlcst2unicst(struct adapter *padapter, struct sk_buff *skb)
> psta = list_entry(plist, struct sta_info, asoc_list);
>
> stainfo_offset = rtw_stainfo_offset(pstapriv, psta);
> - if (stainfo_offset_valid(stainfo_offset)) {
> + if (stainfo_offset_valid(stainfo_offset))
> chk_alive_list[chk_alive_num++] = stainfo_offset;
> - }
> }
> spin_unlock_bh(&pstapriv->asoc_list_lock);
>
Hi Jiwon,
please consider the above comments.
Please make your "Subject" line more unique. Consider that we may end up
with having dozen of commits like yours, all of them referring to
different removals and all without the necessary information to tell
what they differ in (except the driver/subsystem). So it would help if
you add the changed file or function to make it more unique.
If you send in a second version of this patch please use a change
history. Description from Dan under:
https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/
Thanks for your support.
Bye Philipp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-02 5:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-01 15:51 [PATCH net-next] staging: rtl8723bs: Delete unnecessary braces for single statement blocks jiwonaid0
2024-08-02 5:45 ` Philipp Hortmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox