RDMA/rxe: Fix redundant break statement in switch-case.
Subsystems (2)
PATCH 1/1 RDMA/rxe: Fix redundant break statement in switch-case.
Removed unreachable break statement after return.
Signed-off-by Rohit Chavan <[email protected]>
--- drivers/infiniband/sw/rxe/rxe_verbs.c | 1 - 1 file changed, 1 deletion(-)
drivers/infiniband/sw/rxe/rxe_verbs.c +0 -1
@@ -798,7 +798,6 @@ static int init_send_wr(struct rxe_qp *qp, struct rxe_send_wr *wr,rxe_err_qp (qp,"unsupported wr opcode %d" , wr->opcode);return -EINVAL ; -break ; } }
--
2.30.2
Quoted 4 lines · Rohit Chavan
Removed unreachable break statement after return.
Signed-off-by Rohit Chavan <[email protected]>
Thanks a lot.
Acked-by Zhu Yanjun <[email protected]>
Zhu Yanjun
Quoted 19 lines
--- drivers/infiniband/sw/rxe/rxe_verbs.c | 1 - 1 file changed, 1 deletion(-)drivers/infiniband/sw/rxe/rxe_verbs.c +0
-2@@ -798,7 +798,6 @@ static int init_send_wr(struct rxe_qp *qp, struct rxe_send_wr *wr,rxe_err_qp (qp,"unsupported wr opcode %d" , wr->opcode);return -EINVAL ; -break ; } } --2.30.2
Leon Romanovsky
AppliedQuoted 3 lines · Rohit Chavan
Removed unreachable break statement after return.
Applied, thanks!
[1/1] RDMA/rxe: Fix redundant break statement in switch-case.
https://git.kernel.org/rdma/rdma/c/6812e069990547
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>