IB/hfi1: Don't modify num_user_contexts module parameter
authorKamenee Arumugam <kamenee.arumugam@intel.com>
Mon, 23 Oct 2017 13:06:24 +0000 (06:06 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 30 Oct 2017 18:51:36 +0000 (14:51 -0400)
commit45a041cce7c4b393e6ee242b7f090393dd1bf9ac
tree15f12da864e128cfbf64cc575a550b432ec1e96f
parent2d9544aacf9e6bdfd4fed44207f815fc7b4d9fc1
IB/hfi1: Don't modify num_user_contexts module parameter

The driver parameter num_user_contexts controls global behavior and
should not be modified by the driver.
This patch eliminates modification of num_user_contexts by using a
local variable to keep track of the value.

Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Kamenee Arumugam <kamenee.arumugam@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c