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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:54 +0000 (14:23 +0200)
commit001f93b39ef7b435278cfebcaef7709823aa4aec
treeb6e0cd827e14d23bf11a95be3ff8912aac4e9908
parent9c663e73f556ccd8e4846dccea4977b107987808
RDMA/rtrs: Replace duplicate check with is_pollqueue helper

[ Upstream commit 36332ded46b6292296bc7170fada6e238a0802cc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/ulp/rtrs/rtrs.c