Re: [PATCH 1/1] vxlan: make the struct nlattr variable const

2016-09-04 Thread Jiri Benc
On Sat, 3 Sep 2016 22:07:10 +0800, zyjzyj2...@gmail.com wrote: > From: Zhu Yanjun > > The struct nlattr variable should not be changed. True. But the only caller is vxlan_fdb_parse which doesn't have its tb parameter const, so what's the point? Now, the tb parameter of vxlan_fdb_parse could be

[PATCH 1/1] vxlan: make the struct nlattr variable const

2016-09-03 Thread zyjzyj2000
From: Zhu Yanjun The struct nlattr variable should not be changed. Signed-off-by: Zhu Yanjun --- drivers/net/vxlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index f605a36..ce65897 100644 --- a/drivers/net/vxlan.c +++ b/d