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)
commit629e67c8cc66f00ad33f919c13c727a6710a18df
tree3a6e4a2fb5948cc41352283a958624f08fd9fec7
parent3d298d8ee1962b73b6e578072471d755ce7dfbe5
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