]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Don't set s_addr in vxlan_create_sock
authorSimon Horman <simon.horman@netronome.com>
Fri, 13 Mar 2015 02:00:58 +0000 (11:00 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2015 03:23:16 +0000 (23:23 -0400)
commit7d9d884a636a62740b0116bf49e9de77560f3baa
treeb9a8fa80ece56a2efa30123f79f8bdaf2b2f67ea
parentf947f62ea3b6dd5257d1e5b1d0e05aff9197b087
vxlan: Don't set s_addr in vxlan_create_sock

In the case of AF_INET s_addr was set to INADDR_ANY (0) which which both
symmetric with the AF_INET6 case, where s_addr is not set, and unnecessary
as udp_conf is zeroed out earlier in the same function.

I suspect this change does not have any run-time effect due to compiler
optimisations. But it does make the code a little easier on the/my eyes.

Cc: Tom Herbert <therbert@google.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c