提交 f5f5ddbe 编写于 作者: G Gal Pressman 提交者: Jason Gunthorpe

RDMA/efa: Remove {} brackets from single statement if

The {} brackets are not needed according to the Linux coding style.

Link: https://lore.kernel.org/r/20200114085706.82229-5-galpress@amazon.comReviewed-by: NDaniel Kranzdorf <dkkranzd@amazon.com>
Reviewed-by: NFiras JahJah <firasj@amazon.com>
Signed-off-by: NGal Pressman <galpress@amazon.com>
Reviewed-by: NJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
上级 57f63f37
...@@ -1608,13 +1608,12 @@ static int __efa_mmap(struct efa_dev *dev, struct efa_ucontext *ucontext, ...@@ -1608,13 +1608,12 @@ static int __efa_mmap(struct efa_dev *dev, struct efa_ucontext *ucontext,
err = -EINVAL; err = -EINVAL;
} }
if (err) { if (err)
ibdev_dbg( ibdev_dbg(
&dev->ibdev, &dev->ibdev,
"Couldn't mmap address[%#llx] length[%#zx] mmap_flag[%d] err[%d]\n", "Couldn't mmap address[%#llx] length[%#zx] mmap_flag[%d] err[%d]\n",
entry->address, rdma_entry->npages * PAGE_SIZE, entry->address, rdma_entry->npages * PAGE_SIZE,
entry->mmap_flag, err); entry->mmap_flag, err);
}
rdma_user_mmap_entry_put(rdma_entry); rdma_user_mmap_entry_put(rdma_entry);
return err; return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册