Re: [PATCH] infiniband: avoid uninitialized variable warning in create_udata

2017-11-13 Thread Doug Ledford
On Sat, 2017-11-11 at 11:21 +0200, Leon Romanovsky wrote: > On Fri, Nov 10, 2017 at 11:10:31PM +0100, Arnd Bergmann wrote: > > As Dan pointed out, the rework I did makes it harder for smatch and other > > static checkers to figure out what is going on with the uninitialized > > pointers. > > > > B

Re: [PATCH] infiniband: avoid uninitialized variable warning in create_udata

2017-11-11 Thread Leon Romanovsky
On Fri, Nov 10, 2017 at 11:10:31PM +0100, Arnd Bergmann wrote: > As Dan pointed out, the rework I did makes it harder for smatch and other > static checkers to figure out what is going on with the uninitialized > pointers. > > By open-coding the call in create_udata(), we make it more readable for

[PATCH] infiniband: avoid uninitialized variable warning in create_udata

2017-11-10 Thread Arnd Bergmann
As Dan pointed out, the rework I did makes it harder for smatch and other static checkers to figure out what is going on with the uninitialized pointers. By open-coding the call in create_udata(), we make it more readable for both humans and tools. Reported-by: Dan Carpenter Fixes: 12f727721eee