Thread (8 messages) flat view 8 messages, 3 authors, 2012-08-03

Re: [PATCH] ipv4: remove parentheses in return statement

From: Eric Dumazet <hidden>
Date: 2012-08-03 09:19:49

On Fri, 2012-08-03 at 01:43 -0600, Jean Sacren wrote:
quoted hunk ↗ jump to hunk
@@ -106,8 +106,8 @@ static inline unsigned int inet_addr_hash(struct net *net, __be32 addr)
 {
 	u32 val = (__force u32) addr ^ hash_ptr(net, 8);
 
-	return ((val ^ (val >> 8) ^ (val >> 16) ^ (val >> 24)) &
-		(IN4_ADDR_HSIZE - 1));
+	return (val ^ (val >> 8) ^ (val >> 16) ^ (val >> 24)) &
+	       (IN4_ADDR_HSIZE - 1);
 }
BTW This should use a faster implementation, I'll send a patch when
net-next is opened.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help