vxlan: use reset to set header pointers
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Thu, 3 Mar 2016 01:16:54 +0000 (01:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Mar 2016 03:45:13 +0000 (22:45 -0500)
commit6297b91c7fb530d3f2543a8e25d68ccf75bfb139
tree2ea0b434beb4732f1775b0a4c28e851f8a2fccbd
parent94f7153e41d834824f4108d832f1935603e73105
vxlan: use reset to set header pointers

Since offset is zero, it's not necessary to use set function. Reset
function is straightforward, and will remove the unnecessary add operation
in set function.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
This page took 0.03657 seconds and 5 git commands to generate.