IB/hfi1: Remove intermediate var in hfi1_user_sdma_alloc_queues()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 10 Feb 2017 07:50:45 +0000 (08:50 +0100)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Apr 2017 20:24:05 +0000 (16:24 -0400)
commite036c2006c77c750d0f553e1b484b029e231d7ee
tree2dd016a033c56e59133e552693b4b382706a0114
parent147d84e1e3a0d0920004362d3f4f6d2d24581508
IB/hfi1: Remove intermediate var in hfi1_user_sdma_alloc_queues()

* Pass a product for a call of the function "vmalloc_user" without storing
  it in an intermediate variable.

* Delete the local variable "memsize" which became unnecessary with
  this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c