IB/qib: Change get_user_pages() usage to always NULL vmas
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 15 Sep 2014 15:42:53 +0000 (11:42 -0400)
committerRoland Dreier <roland@purestorage.com>
Fri, 19 Sep 2014 17:03:27 +0000 (10:03 -0700)
commitf5c4984e065556b81edf3c9dadfbc8750de690fc
tree4f110772b17e2c16f9313bc672e4c2f1da600a5c
parent3033771febebf2c66d5146624746ebc4a3d79314
IB/qib: Change get_user_pages() usage to always NULL vmas

The static helper routine, __qib_get_user_pages(), accepts a vma arg,
but current use always passes NULL.

This has caused some confusion associated with the correct use of this
argument, but since the current use case doesn't require the
flexiblity, the best thing to do is to simplfy the code to always pass
NULL to get_user_pages().

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_user_pages.c