Re: [PATCH 06/12] s390: ctcm: fix ctcm_new_device error return code

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:19 +0200 Arnd Bergmann wrote: > clang points out that the return code from this function is > undefined for one of the error paths: > > ../drivers/s390/net/ctcm_main.c:1595:7: warning: variable 'result' is used > uninitialized whenever 'if' condition is true >

Re: [PATCH 06/12] s390: ctcm: fix ctcm_new_device error return code

2019-04-08 Thread Nathan Chancellor
On Mon, Apr 08, 2019 at 11:26:19PM +0200, Arnd Bergmann wrote: > clang points out that the return code from this function is > undefined for one of the error paths: > > ../drivers/s390/net/ctcm_main.c:1595:7: warning: variable 'result' is used > uninitialized whenever 'if' condition is true >

[PATCH 06/12] s390: ctcm: fix ctcm_new_device error return code

2019-04-08 Thread Arnd Bergmann
clang points out that the return code from this function is undefined for one of the error paths: ../drivers/s390/net/ctcm_main.c:1595:7: warning: variable 'result' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if