staging/rdma/hfi1: Remove else after break
authorJubin John <jubin.john@intel.com>
Mon, 15 Feb 2016 04:22:09 +0000 (20:22 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:45:42 +0000 (20:45 -0500)
Remove else after break to fix checkpatch warning:
WARNING: else is not generally useful after a break or return

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>
drivers/staging/rdma/hfi1/qp.c

index 4f40c987303bec3a5eb37ef4b15fefd1ac92ce78..a17cb732277e11469080ba86e1fe68a13d205180 100644 (file)
@@ -329,11 +329,9 @@ __be32 hfi1_compute_aeth(struct rvt_qp *qp)
                        if (credit_table[x] > credits) {
                                max = x;
                        } else {
-                               if (min == x) {
+                               if (min == x)
                                        break;
-                               } else {
-                                       min = x;
-                               }
+                               min = x;
                        }
                }
                aeth |= x << HFI1_AETH_CREDIT_SHIFT;