diff options
author | Dean Luick <dean.luick@intel.com> | 2016-04-12 10:50:35 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-04-28 16:32:27 -0400 |
commit | 60d585ad6e64bac87a676df4d941c823360f6ae1 (patch) | |
tree | a44dab109b41b5567a2a7e993f01d6dbb61cdf3c | |
parent | de882ff5b8640c34d5f1d5dfd2f22f405465aa19 (diff) |
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>