]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/rdma/ipath/ipath_intr.c
staging: rdma: Fix braces around if/else
[karo-tx-linux.git] / drivers / staging / rdma / ipath / ipath_intr.c
index 01ba792791a0afbed1c030f20001271f6af63aa4..e568971087229a8ea8475fc092a50abffb19ee34 100644 (file)
@@ -514,15 +514,14 @@ static unsigned handle_frequent_errors(struct ipath_devdata *dd,
                        *noprint = 1;
                        if (!supp_msgs++)
                                nextmsg_time = nc + HZ * 3;
-               }
-               else if (supp_msgs) {
+               } else if (supp_msgs) {
                        handle_supp_msgs(dd, supp_msgs, msg, msgsz);
                        supp_msgs = 0;
                        nmsgs = 0;
                }
-       }
-       else if (!nmsgs++ || time_after(nc, nextmsg_time))
+       } else if (!nmsgs++ || time_after(nc, nextmsg_time)) {
                nextmsg_time = nc + HZ / 2;
+       }
 
        return supp_msgs;
 }