RDMA/efa: Remove redundant NULL pointer check of CQE
authorGal Pressman <galpress@amazon.com>
Tue, 26 Jan 2021 12:06:57 +0000 (14:06 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 28 Jan 2021 19:56:12 +0000 (15:56 -0400)
commit68fb9f3e312a36e49fd05ec2d6b668daf2c4931a
tree150747e2bdb211f7274d6d2906886b9ae0e4391e
parentc2a54b68738c0261cdc1b399e019c71cba389686
RDMA/efa: Remove redundant NULL pointer check of CQE

A pointer to store the command completion must be provided as it is always
used in efa_com_put_comp_ctx() to return the completion context back to
the pool. Remove the NULL pointer check and the redundant 'status' field
stored on the context as it could be retrieved from the completion itself.

Link: https://lore.kernel.org/r/20210126120702.9807-2-galpress@amazon.com
Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/efa/efa_com.c