Re: [PATCH for-next] RDMA/rxe: Fix checkpatch warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux