On Fri, Feb 05, 2021 at 05:05:26PM -0600, Bob Pearson wrote: > 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 > independant of the other code. > > Signed-off-by: Bob Pearson <rpearson@xxxxxxx> > --- > drivers/infiniband/sw/rxe/rxe_qp.c | 2 +- > drivers/infiniband/sw/rxe/rxe_verbs.c | 16 ++++++++++------ > 2 files changed, 11 insertions(+), 7 deletions(-) Applied to for-next, thanks Jason