Re: [PATCH iproute2] tunnel: Return constant string without copying it

2018-01-18 Thread Serhey Popovych
Serhey Popovych wrote: > We return constant string from tnl_strproto(), no need > to copy it to temporary buffer and then return such > buffer as const: return constant string instead. > > Signed-off-by: Serhey Popovych This change should be ignored: now it is a part

[PATCH iproute2] tunnel: Return constant string without copying it

2018-01-12 Thread Serhey Popovych
We return constant string from tnl_strproto(), no need to copy it to temporary buffer and then return such buffer as const: return constant string instead. Signed-off-by: Serhey Popovych --- ip/tunnel.c | 25 +++-- 1 file changed, 7 insertions(+),