Re: diff: uvm: fix unitialized var and simplify code in km_alloc()

2020-05-22 Thread Alexander Bluhm
On Wed, May 20, 2020 at 11:44:57AM +0200, Jan Klemkow wrote: > The function km_alloc() returns the uninitialized local variable sva if > pgl is empty. It seems to be not possible in the current condition of > the code, but I'm not sure if this is guaranteed. Thus, I would prefer > to initialize

diff: uvm: fix unitialized var and simplify code in km_alloc()

2020-05-20 Thread Jan Klemkow
Hi, The function km_alloc() returns the uninitialized local variable sva if pgl is empty. It seems to be not possible in the current condition of the code, but I'm not sure if this is guaranteed. Thus, I would prefer to initialize sva with zero. It also seems to be unnecessary to loop over the