]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e578ba0d242bd1d3607c34ee748bcd1a67050fd
treeb6e0cd827e14d23bf11a95be3ff8912aac4e9908
parent6b9686518b3272d8dbf0138a1f09b66587857d16
RDMA/rtrs: Replace duplicate check with is_pollqueue helper

[ Upstream commit 629e67c8cc66f00ad33f919c13c727a6710a18df ]

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