]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f0bdabaef451c37d3a6e7a9896821b1c7d2351f
treea44dab109b41b5567a2a7e993f01d6dbb61cdf3c
parent5f3e698de9aecc6c4d52bd5b880c445689afbb78
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