Patchwork include/net/tcp.h: whitespace cleanup at tcp_v4_check

login
register
mail settings
Submitter Daniel T. Lee
Date April 20, 2019, 3:50 p.m.
Message ID <20190420155042.29298-1-danieltimlee@gmail.com>
Download mbox | patch
Permalink /patch/777657/
State New
Headers show

Comments

Daniel T. Lee - April 20, 2019, 3:50 p.m.
This patch makes trivial whitespace fix to the function
tcp_v4_check at include/net/tcp.h file.

It has stylistic issue, which is "space required after that ','"
and it can be confirmed with ./scripts/checkpatch.pl tool.

    ERROR: space required after that ',' (ctx:VxV)
    #29: FILE: include/net/tcp.h:1317:
    +	        return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base);
         	                              ^

Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
---
 include/net/tcp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
David Miller - April 23, 2019, 4:46 a.m.
From: "Daniel T. Lee" <danieltimlee@gmail.com>
Date: Sun, 21 Apr 2019 00:50:42 +0900

> This patch makes trivial whitespace fix to the function
> tcp_v4_check at include/net/tcp.h file.
> 
> It has stylistic issue, which is "space required after that ','"
> and it can be confirmed with ./scripts/checkpatch.pl tool.
> 
>     ERROR: space required after that ',' (ctx:VxV)
>     #29: FILE: include/net/tcp.h:1317:
>     +	        return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base);
>          	                              ^
> 
> Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>

Applied to net-next, thanks Daniel.

Patch

diff --git a/include/net/tcp.h b/include/net/tcp.h
index 68ee02523b87..7cf1181630a3 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1314,7 +1314,7 @@  static inline void tcp_update_wl(struct tcp_sock *tp, u32 seq)
 static inline __sum16 tcp_v4_check(int len, __be32 saddr,
 				   __be32 daddr, __wsum base)
 {
-	return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base);
+	return csum_tcpudp_magic(saddr, daddr, len, IPPROTO_TCP, base);
 }
 
 static inline bool tcp_checksum_complete(struct sk_buff *skb)