IB/hfi1: Fix pio wait counter double increment
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 12 May 2016 17:22:57 +0000 (10:22 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:15 +0000 (19:39 -0400)
commit17f15bf66884b9e33c5005ee0149b039af8f7af2
tree77308e38ae45f9b5313a4404e132cd36bbdab19f
parent1ebe79c9484bb1b9bd51b3dd6e82b8ff87ebaeba
IB/hfi1: Fix pio wait counter double increment

The code unconditionlly increments the pio wait counter
making the counter inacurate and unusable.

Fixes: 14553ca11039 ("staging/rdma/hfi1: Adaptive PIO for short messages")
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/verbs.c