* [PATCH] staging: vt6655f: rxtx: code style - Fix Lines should not end with a '('
@ 2022-04-13 7:35 aliya-rahmani
2022-04-13 7:51 ` Dan Carpenter
2022-04-13 9:06 ` Julia Lawall
0 siblings, 2 replies; 3+ messages in thread
From: aliya-rahmani @ 2022-04-13 7:35 UTC (permalink / raw)
To: tomm.merciai; +Cc: gregkh, linux-staging, outreachy, Aliya Rahmani
From: Aliya Rahmani <aliyarahmani786@gmail.com>
Removed indentation to fix the checkpatch error that lines should not
end with a '('.
Signed-off-by: Aliya Rahmani <aliyarahmani786@gmail.com>
---
drivers/staging/vt6655/rxtx.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
index 53506e242a96..dce9d87d2363 100644
--- a/drivers/staging/vt6655/rxtx.c
+++ b/drivers/staging/vt6655/rxtx.c
@@ -569,8 +569,7 @@ s_uFillDataHead(
static
void
-s_vFillRTSHead(
- struct vnt_private *pDevice,
+s_vFillRTSHead(struct vnt_private *pDevice,
unsigned char byPktType,
void *pvRTS,
unsigned int cbFrameLength,
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: vt6655f: rxtx: code style - Fix Lines should not end with a '('
2022-04-13 7:35 [PATCH] staging: vt6655f: rxtx: code style - Fix Lines should not end with a '(' aliya-rahmani
@ 2022-04-13 7:51 ` Dan Carpenter
2022-04-13 9:06 ` Julia Lawall
1 sibling, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2022-04-13 7:51 UTC (permalink / raw)
To: aliya-rahmani; +Cc: tomm.merciai, gregkh, linux-staging, outreachy
On Wed, Apr 13, 2022 at 01:05:45PM +0530, aliya-rahmani wrote:
> From: Aliya Rahmani <aliyarahmani786@gmail.com>
>
> Removed indentation to fix the checkpatch error that lines should not
> end with a '('.
>
> Signed-off-by: Aliya Rahmani <aliyarahmani786@gmail.com>
>
> ---
> drivers/staging/vt6655/rxtx.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
> index 53506e242a96..dce9d87d2363 100644
> --- a/drivers/staging/vt6655/rxtx.c
> +++ b/drivers/staging/vt6655/rxtx.c
> @@ -569,8 +569,7 @@ s_uFillDataHead(
>
> static
> void
> -s_vFillRTSHead(
> - struct vnt_private *pDevice,
> +s_vFillRTSHead(struct vnt_private *pDevice,
> unsigned char byPktType,
Indent these lines as well and move the ) forward.
s_vFillRTSHead(struct vnt_private *pDevice,
unsigned char byPktType,
...
unsigned char byFBOption)
{
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: vt6655f: rxtx: code style - Fix Lines should not end with a '('
2022-04-13 7:35 [PATCH] staging: vt6655f: rxtx: code style - Fix Lines should not end with a '(' aliya-rahmani
2022-04-13 7:51 ` Dan Carpenter
@ 2022-04-13 9:06 ` Julia Lawall
1 sibling, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2022-04-13 9:06 UTC (permalink / raw)
To: aliya-rahmani; +Cc: tomm.merciai, gregkh, linux-staging, outreachy
On Wed, 13 Apr 2022, aliya-rahmani wrote:
> From: Aliya Rahmani <aliyarahmani786@gmail.com>
>
> Removed indentation to fix the checkpatch error that lines should not
> end with a '('.
The log message should be in the imperative, so it would be "Remove", not
"Removed".
Maybe it would be nice to keep the parameters aligned, thus indent the
others more?
In another patch you could improve the variable names and the function
name. I'm not sure why static and void have to be on separate lines
either.
julia
>
> Signed-off-by: Aliya Rahmani <aliyarahmani786@gmail.com>
>
> ---
> drivers/staging/vt6655/rxtx.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
> index 53506e242a96..dce9d87d2363 100644
> --- a/drivers/staging/vt6655/rxtx.c
> +++ b/drivers/staging/vt6655/rxtx.c
> @@ -569,8 +569,7 @@ s_uFillDataHead(
>
> static
> void
> -s_vFillRTSHead(
> - struct vnt_private *pDevice,
> +s_vFillRTSHead(struct vnt_private *pDevice,
> unsigned char byPktType,
> void *pvRTS,
> unsigned int cbFrameLength,
> --
> 2.25.1
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-13 9:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-13 7:35 [PATCH] staging: vt6655f: rxtx: code style - Fix Lines should not end with a '(' aliya-rahmani
2022-04-13 7:51 ` Dan Carpenter
2022-04-13 9:06 ` Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox