[PATCH] staging: rtl8723bs: fix line length in rtw_cmd.c

Lettice up posted 1 patch 1 month, 3 weeks ago
drivers/staging/rtl8723bs/core/rtw_cmd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
[PATCH] staging: rtl8723bs: fix line length in rtw_cmd.c
Posted by Lettice up 1 month, 3 weeks ago
嗨,Greg,

这个补丁修复了 rtw_cmd.c 文件中关于行长度的 checkpatch.pl 警告。我把它作为附件发送,以避免我的邮件客户端出现格式问题。

谢谢,Lettice Jimmy
From df6f28e1bc657342e483b15e5b72343929129bb0 Mon Sep 17 00:00:00 2001
From: Lettice Jimmy <minecraftwemmne@gmail.com>
Date: Sun, 26 Apr 2026 06:12:22 -0400
Subject: [PATCH] staging: rtl8723bs: fix line length in rtw_cmd.c

Fix a checkpatch.pl warning where a line exceeds 100 columns
by breaking the long memcpy() call into two lines.

Signed-off-by: Lettice Jimmy <minecraftwemmne@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_cmd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index c1185c25ed36..50662d44a4b6 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -557,7 +557,8 @@ u8 rtw_sitesurvey_cmd(struct adapter  *padapter, struct ndis_802_11_ssid *ssid,
 
 		for (i = 0; i < ssid_num && i < RTW_SSID_SCAN_AMOUNT; i++) {
 			if (ssid[i].ssid_length) {
-				memcpy(&psurveyPara->ssid[i], &ssid[i], sizeof(struct ndis_802_11_ssid));
+				memcpy(&psurveyPara->ssid[i], &ssid[i],
+				       sizeof(struct ndis_802_11_ssid));
 				psurveyPara->ssid_num++;
 			}
 		}
-- 
2.53.0

Re: [PATCH] staging: rtl8723bs: fix line length in rtw_cmd.c
Posted by Greg KH 1 month, 3 weeks ago
On Sun, Apr 26, 2026 at 06:20:26PM +0800, Lettice up wrote:
> 嗨,Greg,
> 
> 这个补丁修复了 rtw_cmd.c 文件中关于行长度的 checkpatch.pl 警告。我把它作为附件发送,以避免我的邮件客户端出现格式问题。
> 
> 谢谢,Lettice Jimmy


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 was attached, please place it inline so that it can be
  applied directly from the email message itself.

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