Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1195717
| From | Joe Perches <joe@perches.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4573/4573] Staging: rtl8188eu: fixed newlines after declarations |
| Date | 2015-07-30 07:40 +0200 |
| Message-ID | <pROJr-5NH-1@gated-at.bofh.it> (permalink) |
| References | <pRL8S-wR-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 4573/4573] Staging: rtl8188eu: fixed newlines after declarations Dave Perez <dave@daveperez.com> - 2015-07-30 03:50 +0200 Re: [PATCH 4573/4573] Staging: rtl8188eu: fixed newlines after declarations Joe Perches <joe@perches.com> - 2015-07-30 07:40 +0200
csiph-web