Re: [PATCH] rxrpc: avoid clang -Wuninitialized warning

2019-03-22 Thread Nathan Chancellor
On Fri, Mar 22, 2019 at 03:18:43PM +0100, Arnd Bergmann wrote: > clang produces a false-positive warning as it fails to notice > that "lost = true" implies that "ret" is initialized: > > net/rxrpc/output.c:402:6: error: variable 'ret' is used uninitialized > whenever 'if' condition is true

[PATCH] rxrpc: avoid clang -Wuninitialized warning

2019-03-22 Thread Arnd Bergmann
clang produces a false-positive warning as it fails to notice that "lost = true" implies that "ret" is initialized: net/rxrpc/output.c:402:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] if (lost) ^~~~