IB/hfi1: Simplify init_qpmap_table()
authorDean Luick <dean.luick@intel.com>
Tue, 12 Apr 2016 17:50:35 +0000 (10:50 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:27 +0000 (16:32 -0400)
commit60d585ad6e64bac87a676df4d941c823360f6ae1
treea44dab109b41b5567a2a7e993f01d6dbb61cdf3c
parentde882ff5b8640c34d5f1d5dfd2f22f405465aa19
IB/hfi1: Simplify init_qpmap_table()

Make init_qpmap_table() easier to understand by simplifying
the loop indexing and writing each register when it is "full",
removing the need for a follow-on register write.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c