IB/ipath: Change get_user_pages() usage to always NULL vmas
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 15 Sep 2014 15:43:06 +0000 (11:43 -0400)
committerRoland Dreier <roland@purestorage.com>
Fri, 19 Sep 2014 17:03:11 +0000 (10:03 -0700)
commit3033771febebf2c66d5146624746ebc4a3d79314
treef73f21332fc1617ba6297e67e5f7fca3f14195d4
parent52addcf9d6669fa439387610bc65c92fa0980cef
IB/ipath: Change get_user_pages() usage to always NULL vmas

The static helper routine, __ipath_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/ipath/ipath_user_pages.c