All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: vt6655: Fix style violation for line ending in '('
@ 2018-03-03 15:22 Rinkle Jain
  2018-03-03 15:26 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 2+ messages in thread
From: Rinkle Jain @ 2018-03-03 15:22 UTC (permalink / raw)
  To: forest, gregkh, outreachy-kernel

Replace line ending with '(' with function parameters to resolve
style issue found by checkpath.

Signed-off-by: Rinkle Jain <rinklejain96@gmail.com>
---
 drivers/staging/vt6655/baseband.h | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/vt6655/baseband.h b/drivers/staging/vt6655/baseband.h
index b8ee33dcb352..432b348c81e1 100644
--- a/drivers/staging/vt6655/baseband.h
+++ b/drivers/staging/vt6655/baseband.h
@@ -47,11 +47,10 @@
 #define TOP_RATE_1M         0x00100000
 
 unsigned int
-BBuGetFrameTime(
-	unsigned char byPreambleType,
-	unsigned char byPktType,
-	unsigned int cbFrameLength,
-	unsigned short wRate
+BBuGetFrameTime(unsigned char byPreambleType,
+		unsigned char byPktType,
+		unsigned int cbFrameLength,
+		unsigned short wRate
 );
 
 void vnt_get_phy_field(struct vnt_private *priv, u32 frame_length,
-- 
2.14.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Outreachy kernel] [PATCH] staging: vt6655: Fix style violation for line ending in '('
  2018-03-03 15:22 [PATCH] staging: vt6655: Fix style violation for line ending in '(' Rinkle Jain
@ 2018-03-03 15:26 ` Julia Lawall
  0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2018-03-03 15:26 UTC (permalink / raw)
  To: Rinkle Jain; +Cc: forest, gregkh, outreachy-kernel



On Sat, 3 Mar 2018, Rinkle Jain wrote:

> Replace line ending with '(' with function parameters to resolve
> style issue found by checkpath.
>
> Signed-off-by: Rinkle Jain <rinklejain96@gmail.com>
> ---
>  drivers/staging/vt6655/baseband.h | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/staging/vt6655/baseband.h b/drivers/staging/vt6655/baseband.h
> index b8ee33dcb352..432b348c81e1 100644
> --- a/drivers/staging/vt6655/baseband.h
> +++ b/drivers/staging/vt6655/baseband.h
> @@ -47,11 +47,10 @@
>  #define TOP_RATE_1M         0x00100000
>
>  unsigned int
> -BBuGetFrameTime(
> -	unsigned char byPreambleType,
> -	unsigned char byPktType,
> -	unsigned int cbFrameLength,
> -	unsigned short wRate
> +BBuGetFrameTime(unsigned char byPreambleType,
> +		unsigned char byPktType,
> +		unsigned int cbFrameLength,
> +		unsigned short wRate
>  );

I think that the code could still be improved, to use more of the
horizontal space and not leave the ); on a line by itself.  Look around in
the kernel outside staging at .h files to see how other function
prototype declarations look.

julia

>
>  void vnt_get_phy_field(struct vnt_private *priv, u32 frame_length,
> --
> 2.14.3
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20180303152244.GA9913%40tic-tac.
> For more options, visit https://groups.google.com/d/optout.
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-03 15:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-03 15:22 [PATCH] staging: vt6655: Fix style violation for line ending in '(' Rinkle Jain
2018-03-03 15:26 ` [Outreachy kernel] " Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.