Re: [PATCH -next] IB/qib: Remove unused variable 'locked'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 17 Feb 2019, H?kon Bugge wrote:
But while looking at the code, the for loop just below looks suspicious:

       for (got = 0; got < num_pages; got += ret) {

as ret is uninitialized.

The first loop will initialize ret with the return of gup_longterm().

Thanks,
Davidlohr



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux