diff options
author | Jubin John <jubin.john@intel.com> | 2016-02-14 20:22:00 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-10 20:45:42 -0500 |
commit | e490974e675e8ddec795137c1db7f38e0308cbcd (patch) | |
tree | aee9e4dd1164a49bdcd1fa9bf314b4695dc5df24 /drivers/staging/rdma/hfi1/qp.c | |
parent | staging/rdma/hfi1: Fix code alignment (diff) | |
download | linux-dev-e490974e675e8ddec795137c1db7f38e0308cbcd.tar.xz linux-dev-e490974e675e8ddec795137c1db7f38e0308cbcd.zip |
staging/rdma/hfi1: Add braces on all arms of statement
Add braces on all arms of statements to fix checkpatch check:
CHECK: braces {} should be used on all arms of this statement
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/qp.c')
-rw-r--r-- | drivers/staging/rdma/hfi1/qp.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/staging/rdma/hfi1/qp.c b/drivers/staging/rdma/hfi1/qp.c index 90246737a3a1..4f40c987303b 100644 --- a/drivers/staging/rdma/hfi1/qp.c +++ b/drivers/staging/rdma/hfi1/qp.c @@ -326,12 +326,15 @@ __be32 hfi1_compute_aeth(struct rvt_qp *qp) x = (min + max) / 2; if (credit_table[x] == credits) break; - if (credit_table[x] > credits) + if (credit_table[x] > credits) { max = x; - else if (min == x) - break; - else - min = x; + } else { + if (min == x) { + break; + } else { + min = x; + } + } } aeth |= x << HFI1_AETH_CREDIT_SHIFT; } |