diff options
| author | Simon Horman <[email protected]> | 2015-03-13 02:00:58 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-03-13 03:23:16 +0000 |
| commit | 719a11cdbf57b7bdd6c87ded00fd7cb36a76a6a3 (patch) | |
| tree | b9a8fa80ece56a2efa30123f79f8bdaf2b2f67ea /net/switchdev/switchdev.c | |
| parent | mpls: In mpls_egress verify the packet length. (diff) | |
| download | kernel-719a11cdbf57b7bdd6c87ded00fd7cb36a76a6a3.tar.gz kernel-719a11cdbf57b7bdd6c87ded00fd7cb36a76a6a3.zip | |
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 <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
