netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: the space is required before the open parenthesis '('
@ 2016-06-27 10:12 Wei Tang
  2016-06-29  9:16 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Tang @ 2016-06-27 10:12 UTC (permalink / raw)
  To: davem, tom, hannes; +Cc: ast, daniel, netdev, linux-kernel, Wei Tang

The space is missing before the open parenthesis '(', and this
will introduce much more noise when checking patch around.

Signed-off-by: Wei Tang <tangwei@cmss.chinamobile.com>
---
 net/core/utils.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/core/utils.c b/net/core/utils.c
index 3d17ca8..cf5622b 100644
--- a/net/core/utils.c
+++ b/net/core/utils.c
@@ -133,7 +133,7 @@ int in4_pton(const char *src, int srclen,
 	s = src;
 	d = dbuf;
 	i = 0;
-	while(1) {
+	while (1) {
 		int c;
 		c = xdigit2bin(srclen > 0 ? *s : '\0', delim);
 		if (!(c & (IN6PTON_DIGIT | IN6PTON_DOT | IN6PTON_DELIM | IN6PTON_COLON_MASK))) {
@@ -283,11 +283,11 @@ cont:
 	i = 15; d--;
 
 	if (dc) {
-		while(d >= dc)
+		while (d >= dc)
 			dst[i--] = *d--;
-		while(i >= dc - dbuf)
+		while (i >= dc - dbuf)
 			dst[i--] = 0;
-		while(i >= 0)
+		while (i >= 0)
 			dst[i--] = *d--;
 	} else
 		memcpy(dst, dbuf, sizeof(dbuf));
-- 
1.9.1

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

* Re: [PATCH] net: the space is required before the open parenthesis '('
  2016-06-27 10:12 [PATCH] net: the space is required before the open parenthesis '(' Wei Tang
@ 2016-06-29  9:16 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-06-29  9:16 UTC (permalink / raw)
  To: tangwei; +Cc: tom, hannes, ast, daniel, netdev, linux-kernel

From: Wei Tang <tangwei@cmss.chinamobile.com>
Date: Mon, 27 Jun 2016 18:12:46 +0800

> The space is missing before the open parenthesis '(', and this
> will introduce much more noise when checking patch around.
> 
> Signed-off-by: Wei Tang <tangwei@cmss.chinamobile.com>

Applied.

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

end of thread, other threads:[~2016-06-29  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-27 10:12 [PATCH] net: the space is required before the open parenthesis '(' Wei Tang
2016-06-29  9:16 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).