diff options
author | Bob Pearson <rpearson@hpe.com> | 2021-02-05 17:05:26 -0600 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-02-08 20:42:57 -0400 |
commit | dc78074a808e2363fd0de92fbc5f5bf44c9d0db1 (patch) | |
tree | ab51cbc6fa7ecbd01a5f08ac9bf2f23c8d2edfa1 /drivers/infiniband/sw/rxe/rxe_qp.c | |
parent | RDMA/mlx5: Cleanup the synchronize_srcu() from the ODP flow (diff) | |
download | linux-dev-dc78074a808e2363fd0de92fbc5f5bf44c9d0db1.tar.xz linux-dev-dc78074a808e2363fd0de92fbc5f5bf44c9d0db1.zip |
RDMA/rxe: Fix minor coding style issues
checkpatch -f found 3 warnings in RDMA/rxe
1. a missing space following switch
2. return followed by else
3. use of strlcpy() instead of strscpy().
This patch fixes each of these. In
...
} elseif (...) {
...
return 0;
} else
...
The middle block can be safely moved since it is completely independent of
the other code.
Link: https://lore.kernel.org/r/20210205230525.49068-1-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_qp.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_qp.c b/drivers/infiniband/sw/rxe/rxe_qp.c index 65c8df812aeb..34ae957a315c 100644 --- a/drivers/infiniband/sw/rxe/rxe_qp.c +++ b/drivers/infiniband/sw/rxe/rxe_qp.c @@ -62,7 +62,7 @@ int rxe_qp_chk_init(struct rxe_dev *rxe, struct ib_qp_init_attr *init) struct rxe_port *port; int port_num = init->port_num; - switch(init->qp_type) { + switch (init->qp_type) { case IB_QPT_SMI: case IB_QPT_GSI: case IB_QPT_RC: |