RDMA/rxe: Fix minor coding style issues
authorBob Pearson <rpearson@hpe.com>
Fri, 5 Feb 2021 23:05:26 +0000 (17:05 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 9 Feb 2021 00:42:57 +0000 (20:42 -0400)
commitdc78074a808e2363fd0de92fbc5f5bf44c9d0db1
treeab51cbc6fa7ecbd01a5f08ac9bf2f23c8d2edfa1
parentdb72438c9319cfd37e3c237a7754ca862ae12d63
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>
drivers/infiniband/sw/rxe/rxe_qp.c
drivers/infiniband/sw/rxe/rxe_verbs.c