Andrew Morton 1d3f4b905a IB: Fix ib_umem_get() when npages == 0
gcc correctly warned:

drivers/infiniband/core/umem.c: In function 'ib_umem_get':
drivers/infiniband/core/umem.c:78: warning: 'ret' may be used uninitialized in this function

Set ret to 0 in case npages == 0 and the loop isn't entered at all.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-07-09 16:17:33 -07:00
..
2007-07-09 16:17:32 -07:00
2005-10-29 10:35:07 -07:00
2007-05-21 09:18:19 -07:00
2005-10-20 12:29:36 -07:00
2007-05-29 16:07:09 -07:00
2006-09-22 15:22:46 -07:00
2006-11-22 14:57:56 +00:00
2007-07-09 16:17:32 -07:00
2007-07-09 16:17:32 -07:00
2007-07-09 16:17:32 -07:00
2007-04-24 16:31:11 -07:00
2007-04-24 16:31:11 -07:00
2007-07-09 16:17:33 -07:00
2007-05-06 21:18:11 -07:00