diff options
author | Yann Droneaud <ydroneaud@opteya.com> | 2014-03-10 18:06:29 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-03-17 19:16:51 -0400 |
commit | 8572de9732b6d1fd211873ffab8c60b3c1745ee8 (patch) | |
tree | ff9c1c7c5e50f4737bcedabc01c55e4a9a917131 /drivers/infiniband/hw | |
parent | 37a967651caf99dd267017023737bd442f5acb3d (diff) |
IB/qib: fixup indentation in qib_ib_rcv()
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>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_verbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qib/qib_verbs.c b/drivers/infiniband/hw/qib/qib_verbs.c index 1b00734fb80d..9bcfbd842980 100644 --- a/drivers/infiniband/hw/qib/qib_verbs.c +++ b/drivers/infiniband/hw/qib/qib_verbs.c | |||
@@ -678,8 +678,8 @@ void qib_ib_rcv(struct qib_ctxtdata *rcd, void *rhdr, void *data, u32 tlen) | |||
678 | &rcd->lookaside_qp->refcount)) | 678 | &rcd->lookaside_qp->refcount)) |
679 | wake_up( | 679 | wake_up( |
680 | &rcd->lookaside_qp->wait); | 680 | &rcd->lookaside_qp->wait); |
681 | rcd->lookaside_qp = NULL; | 681 | rcd->lookaside_qp = NULL; |
682 | } | 682 | } |
683 | } | 683 | } |
684 | if (!rcd->lookaside_qp) { | 684 | if (!rcd->lookaside_qp) { |
685 | qp = qib_lookup_qpn(ibp, qp_num); | 685 | qp = qib_lookup_qpn(ibp, qp_num); |