aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_qp.c
diff options
context:
space:
mode:
authorLang Cheng <chenglang@huawei.com>2020-12-11 09:37:33 +0800
committerJason Gunthorpe <jgg@nvidia.com>2020-12-11 15:21:34 -0400
commitdc93a0d987fcfe93b132871e72d4ea5aff36dd5c (patch)
tree5b96d3a83d482d35b0778703369473bbc738da4e /drivers/infiniband/hw/hns/hns_roce_qp.c
parentRDMA/hns: Remove unnecessary access right set during INIT2INIT (diff)
downloadlinux-dev-dc93a0d987fcfe93b132871e72d4ea5aff36dd5c.tar.xz
linux-dev-dc93a0d987fcfe93b132871e72d4ea5aff36dd5c.zip
RDMA/hns: Fix coding style issues
Just format the code without modifying anything, including fixing some redundant and missing blanks and spaces and changing the variable definition order. Link: https://lore.kernel.org/r/1607650657-35992-8-git-send-email-liweihang@huawei.com Signed-off-by: Lang Cheng <chenglang@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_qp.c')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_qp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_qp.c b/drivers/infiniband/hw/hns/hns_roce_qp.c
index 76a7c95bbbd2..f89c52bf01d4 100644
--- a/drivers/infiniband/hw/hns/hns_roce_qp.c
+++ b/drivers/infiniband/hw/hns/hns_roce_qp.c
@@ -113,8 +113,8 @@ void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type)
static void hns_roce_ib_qp_event(struct hns_roce_qp *hr_qp,
enum hns_roce_event type)
{
- struct ib_event event;
struct ib_qp *ibqp = &hr_qp->ibqp;
+ struct ib_event event;
if (ibqp->event_handler) {
event.device = ibqp->device;