All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4573/4573] Staging: rtl8188eu: fixed newlines after declarations
@ 2015-07-30  1:34 Dave Perez
  2015-07-30  1:41 ` Greg KH
  2015-07-30  5:38 ` Joe Perches
  0 siblings, 2 replies; 3+ messages in thread
From: Dave Perez @ 2015-07-30  1:34 UTC (permalink / raw)
  To: gregkh, tapaswenipathak; +Cc: devel, linux-kernel, Dave Perez

This is a patch to the rtw_debug.c file that fixes styling errors relating to new lines after variable declarations. 
	
Signed-off-by: Dave Perez <dave@daveperez.com>
---
 drivers/staging/rtl8188eu/core/rtw_debug.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/rtl8188eu/core/rtw_debug.c b/drivers/staging/rtl8188eu/core/rtw_debug.c
index bc3fe10..12beab0 100644
--- a/drivers/staging/rtl8188eu/core/rtw_debug.c
+++ b/drivers/staging/rtl8188eu/core/rtw_debug.c
@@ -219,6 +219,7 @@ int proc_get_ht_option(char *page, char **start,
 	struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
 
 	int len = 0;
+
 	len += snprintf(page + len, count - len, "ht_option=%d\n", pmlmepriv->htpriv.ht_option);
 	*eof = 1;
 	return len;
@@ -588,6 +589,7 @@ int proc_set_rx_signal(struct file *file, const char __user *buffer,
 
 	if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) {
 		int num = sscanf(tmp, "%u %u", &is_signal_dbg, &signal_strength);
+
 		is_signal_dbg = is_signal_dbg == 0 ? 0 : 1;
 		if (is_signal_dbg && num != 2)
 			return count;
-- 
2.4.5


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

* Re: [PATCH 4573/4573] Staging: rtl8188eu: fixed newlines after declarations
  2015-07-30  1:34 [PATCH 4573/4573] Staging: rtl8188eu: fixed newlines after declarations Dave Perez
@ 2015-07-30  1:41 ` Greg KH
  2015-07-30  5:38 ` Joe Perches
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2015-07-30  1:41 UTC (permalink / raw)
  To: Dave Perez; +Cc: tapaswenipathak, devel, linux-kernel

On Wed, Jul 29, 2015 at 09:34:42PM -0400, Dave Perez wrote:
> This is a patch to the rtw_debug.c file that fixes styling errors relating to new lines after variable declarations. 
> 	
> Signed-off-by: Dave Perez <dave@daveperez.com>
> ---
>  drivers/staging/rtl8188eu/core/rtw_debug.c | 2 ++
>  1 file changed, 2 insertions(+)

Where are the 4572 other patches in this series?

:)

Can you please line-wrap your commit message, and fix up the patch
numbering and resend?

thanks,

greg k-h

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

* Re: [PATCH 4573/4573] Staging: rtl8188eu: fixed newlines after declarations
  2015-07-30  1:34 [PATCH 4573/4573] Staging: rtl8188eu: fixed newlines after declarations Dave Perez
  2015-07-30  1:41 ` Greg KH
@ 2015-07-30  5:38 ` Joe Perches
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Perches @ 2015-07-30  5:38 UTC (permalink / raw)
  To: Dave Perez; +Cc: gregkh, tapaswenipathak, devel, linux-kernel

On Wed, 2015-07-29 at 21:34 -0400, Dave Perez wrote:
> This is a patch to the rtw_debug.c file that fixes styling errors relating to new lines after variable declarations. 
[]
> diff --git a/drivers/staging/rtl8188eu/core/rtw_debug.c b/drivers/staging/rtl8188eu/core/rtw_debug.c
[]
> @@ -219,6 +219,7 @@ int proc_get_ht_option(char *page, char **start,
>  	struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
>  
>  	int len = 0;
> +
>  	len += snprintf(page + len, count - len, "ht_option=%d\n", pmlmepriv->htpriv.ht_option);
>  	*eof = 1;
>  	return len;

the blank line before "int len = 0" could also be removed.

The routine _could_ be rewritten more simply as:

	struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
	int len = snprintf(page, count, "ht_option=%d\n",
			   pmlmepriv->htpriv.htoption);

	*eof = 1;

	return len;
}

but there are a bunch of other routines that use this form
so it's probably fine as-is.




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

end of thread, other threads:[~2015-07-30  5:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-30  1:34 [PATCH 4573/4573] Staging: rtl8188eu: fixed newlines after declarations Dave Perez
2015-07-30  1:41 ` Greg KH
2015-07-30  5:38 ` Joe Perches

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.