RDMA/rtrs: Replace duplicate check with is_pollqueue helper
authorJack Wang <jinpu.wang@ionos.com>
Wed, 22 Sep 2021 12:53:30 +0000 (14:53 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 4 Oct 2021 19:46:12 +0000 (16:46 -0300)
commit36332ded46b6292296bc7170fada6e238a0802cc
tree3a6e4a2fb5948cc41352283a958624f08fd9fec7
parent4b6afe9bc955bee44c0527005c3fb0edac91ac30
RDMA/rtrs: Replace duplicate check with is_pollqueue helper

if (con->cid >= con->sess->irq_con_num) check can be replaced with a
is_pollqueue helper.

Link: https://lore.kernel.org/r/20210922125333.351454-5-haris.iqbal@ionos.com
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs.c