Re: [PATCH net] s390: ctcm: fix ctcm_new_device error return code

2019-04-17 Thread David Miller
From: Julian Wiedmann Date: Wed, 17 Apr 2019 18:29:13 +0200 > From: 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

[PATCH net] s390: ctcm: fix ctcm_new_device error return code

2019-04-17 Thread Julian Wiedmann
From: 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 (pr