Re: [PATCH] net: bareudp: avoid uninitialized variable warning

2020-05-07 Thread David Miller
From: Arnd Bergmann Date: Tue, 5 May 2020 19:22:14 +0200 > clang points out that building without IPv6 would lead to returning > an uninitialized variable if a packet with family!=AF_INET is > passed into bareudp_udp_encap_recv(): > > drivers/net/bareudp.c:139:6: error: variable 'err' is used u

Re: [PATCH] net: bareudp: avoid uninitialized variable warning

2020-05-05 Thread Nathan Chancellor
On Tue, May 05, 2020 at 07:22:14PM +0200, Arnd Bergmann wrote: > clang points out that building without IPv6 would lead to returning > an uninitialized variable if a packet with family!=AF_INET is > passed into bareudp_udp_encap_recv(): > > drivers/net/bareudp.c:139:6: error: variable 'err' is use

[PATCH] net: bareudp: avoid uninitialized variable warning

2020-05-05 Thread Arnd Bergmann
clang points out that building without IPv6 would lead to returning an uninitialized variable if a packet with family!=AF_INET is passed into bareudp_udp_encap_recv(): drivers/net/bareudp.c:139:6: error: variable 'err' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-un