IB/hfi1: Fix unbalanced braces around else
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Sun, 9 Apr 2017 17:17:18 +0000 (10:17 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 17:56:23 +0000 (13:56 -0400)
Add missing braces around else blocks in a few places to make checkpatch
happy.

Fixes: 7724105686e7 ("IB/hfi1: add driver files")
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/init.c

index 4c5e4aa6ef377facd86ebcedf7ad198f478fe2d6..0f6916d2d5499cc8ba02202ecfd47afd14ab93a8 100644 (file)
@@ -8185,10 +8185,10 @@ static irqreturn_t sdma_interrupt(int irq, void *data)
 
                /* handle the interrupt(s) */
                sdma_engine_interrupt(sde, status);
-       } else
+       } else {
                dd_dev_err(dd, "SDMA engine %u interrupt, but no status bits set\n",
                           sde->this_idx);
-
+       }
        return IRQ_HANDLED;
 }
 
index 51b760971e1e8645800ac4a2985089106ae3893b..4d6b9f82efa355e0f542b3cc0ce9a487497d2e5e 100644 (file)
@@ -246,9 +246,10 @@ struct hfi1_ctxtdata *hfi1_create_ctxtdata(struct hfi1_pportdata *ppd, u32 ctxt,
                        if (ctxt < kctxt_ngroups) {
                                base = ctxt * (dd->rcv_entries.ngroups + 1);
                                rcd->rcv_array_groups++;
-                       } else
+                       } else {
                                base = kctxt_ngroups +
                                        (ctxt * dd->rcv_entries.ngroups);
+                       }
                } else {
                        u16 ct = ctxt - dd->first_dyn_alloc_ctxt;
 
@@ -257,9 +258,10 @@ struct hfi1_ctxtdata *hfi1_create_ctxtdata(struct hfi1_pportdata *ppd, u32 ctxt,
                        if (ct < dd->rcv_entries.nctxt_extra) {
                                base += ct * (dd->rcv_entries.ngroups + 1);
                                rcd->rcv_array_groups++;
-                       } else
+                       } else {
                                base += dd->rcv_entries.nctxt_extra +
                                        (ct * dd->rcv_entries.ngroups);
+                       }
                }
                rcd->eager_base = base * dd->rcv_entries.group_size;