IB/qib: fixup indentation in qib_ib_rcv()
authorYann Droneaud <ydroneaud@opteya.com>
Mon, 10 Mar 2014 22:06:29 +0000 (23:06 +0100)
committerRoland Dreier <roland@purestorage.com>
Mon, 17 Mar 2014 23:16:51 +0000 (16:16 -0700)
Commit af061a644a0e4d4778 add some code in qib_ib_rcv() which
trigger a warning from coccicheck (coccinelle/spatch):

$ make C=2 CHECK=scripts/coccicheck drivers/infiniband/hw/qib/

  CHECK   drivers/infiniband/hw/qib/qib_verbs.c
drivers/infiniband/hw/qib/qib_verbs.c:679:5-32: code aligned with following code on line 681
  CC [M]  drivers/infiniband/hw/qib/qib_verbs.o

In fact, according to similar code in qib_kreceive(),
qib_ib_rcv() code is correct but improperly indented.

This patch fix indentation for the misaligned portion.

Link: http://marc.info/?i=cover.1394485254.git.ydroneaud@opteya.com
Cc: Mike Marciniszyn <mike.marciniszyn@intel.com>
Cc: infinipath@intel.com
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: cocci@systeme.lip6.fr
Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_verbs.c

index 1b00734fb80d7512ae3d8bd19b9f31fb65ca9b63..9bcfbd8429804e237b23555a54bbd2b1d0fc5a27 100644 (file)
@@ -678,8 +678,8 @@ void qib_ib_rcv(struct qib_ctxtdata *rcd, void *rhdr, void *data, u32 tlen)
                                        &rcd->lookaside_qp->refcount))
                                        wake_up(
                                         &rcd->lookaside_qp->wait);
                                        &rcd->lookaside_qp->refcount))
                                        wake_up(
                                         &rcd->lookaside_qp->wait);
-                                       rcd->lookaside_qp = NULL;
-                               }
+                               rcd->lookaside_qp = NULL;
+                       }
                }
                if (!rcd->lookaside_qp) {
                        qp = qib_lookup_qpn(ibp, qp_num);
                }
                if (!rcd->lookaside_qp) {
                        qp = qib_lookup_qpn(ibp, qp_num);