diff options
author | Yann Droneaud <ydroneaud@opteya.com> | 2014-03-10 18:06:28 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-03-17 19:16:51 -0400 |
commit | 37a967651caf99dd267017023737bd442f5acb3d (patch) | |
tree | d09bd2e966a85f346de85c900d64639cd1a6bc78 /drivers/infiniband/hw | |
parent | 7d7632add8dd99f68b21546efff08a5a162de184 (diff) |
IB/qib: add missing braces in do_qib_user_sdma_queue_create()
Commit c804f07248895ff9c moved qib_assign_ctxt() to
do_qib_user_sdma_queue_create() but dropped the braces
around the statements.
This was spotted by coccicheck (coccinelle/spatch):
$ make C=2 CHECK=scripts/coccicheck drivers/infiniband/hw/qib/
CHECK drivers/infiniband/hw/qib/qib_file_ops.c
drivers/infiniband/hw/qib/qib_file_ops.c:1583:2-23: code aligned with following code on line 1587
This patch adds braces back.
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
Cc: stable@vger.kernel.org
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_file_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c b/drivers/infiniband/hw/qib/qib_file_ops.c index 275f247f9fca..2023cd61b897 100644 --- a/drivers/infiniband/hw/qib/qib_file_ops.c +++ b/drivers/infiniband/hw/qib/qib_file_ops.c | |||
@@ -1578,7 +1578,7 @@ static int do_qib_user_sdma_queue_create(struct file *fp) | |||
1578 | struct qib_ctxtdata *rcd = fd->rcd; | 1578 | struct qib_ctxtdata *rcd = fd->rcd; |
1579 | struct qib_devdata *dd = rcd->dd; | 1579 | struct qib_devdata *dd = rcd->dd; |
1580 | 1580 | ||
1581 | if (dd->flags & QIB_HAS_SEND_DMA) | 1581 | if (dd->flags & QIB_HAS_SEND_DMA) { |
1582 | 1582 | ||
1583 | fd->pq = qib_user_sdma_queue_create(&dd->pcidev->dev, | 1583 | fd->pq = qib_user_sdma_queue_create(&dd->pcidev->dev, |
1584 | dd->unit, | 1584 | dd->unit, |
@@ -1586,6 +1586,7 @@ static int do_qib_user_sdma_queue_create(struct file *fp) | |||
1586 | fd->subctxt); | 1586 | fd->subctxt); |
1587 | if (!fd->pq) | 1587 | if (!fd->pq) |
1588 | return -ENOMEM; | 1588 | return -ENOMEM; |
1589 | } | ||
1589 | 1590 | ||
1590 | return 0; | 1591 | return 0; |
1591 | } | 1592 | } |