RDMA/vmw_pvrdma: Remove unnecessary check on wr->opcode
authorBryan Tan <bryantan@vmware.com>
Mon, 5 Jun 2023 18:37:28 +0000 (11:37 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 9 Jun 2023 17:11:53 +0000 (14:11 -0300)
commit7ad697cdd31b9d5e59e25b035bad4cdd8e76aca1
tree35d6a08e4a581be9a9fd9e5cc892390099a6df49
parentc3e1bf626eb3c53ea60a0c64b441fb3015e1652e
RDMA/vmw_pvrdma: Remove unnecessary check on wr->opcode

wr->opcode is unsigned; checking if it is negative is unnecessary. Fix
this issue by removing the check.

Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver")
Link: https://lore.kernel.org/r/20230605183728.47021-1-bryantan@vmware.com
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/07c48eee-0aca-48ee-897a-38588c341c41@kili.mountain
Signed-off-by: Bryan Tan <bryantan@vmware.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c