RDMA/erdma: Fix opcode conditional check
authorAdvait Dhamorikar <advaitdhamorikar@gmail.com>
Thu, 19 Dec 2024 04:39:39 +0000 (10:09 +0530)
committerLeon Romanovsky <leon@kernel.org>
Thu, 19 Dec 2024 12:16:31 +0000 (07:16 -0500)
commitc57c76498a895a705b624ed65dfe5a3037b78d83
treebf46ebec416b0d7d34f8505bed5d232fc7c8e3e7
parenta3cbf68c69611188cd304229e346bffdabfd4277
RDMA/erdma: Fix opcode conditional check

Fix conditional if else check by checking with wr->opcode.
The indicated dead code may have performed some action; that
action will never occur as op is pre-assigned a different value.

Fixes: 999a0a2e9b87 ("RDMA/erdma: Support UD QPs and UD WRs")
Signed-off-by: Advait Dhamorikar <advaitdhamorikar@gmail.com>
Link: https://patch.msgid.link/20241219043939.10344-1-advaitdhamorikar@gmail.com
Reviewed-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma_qp.c