]> Gentwo Git Trees - linux/.git/commit
RDMA/irdma: Remove redundant NULL check of udata in irdma_create_user_ah()
authorTuo Li <islituo@gmail.com>
Wed, 12 Nov 2025 12:02:53 +0000 (20:02 +0800)
committerLeon Romanovsky <leon@kernel.org>
Wed, 12 Nov 2025 12:10:25 +0000 (07:10 -0500)
commita49a9f4555bde0b008f2225620ae1b2480d2b627
treed061e15f8b825451d5a24231c6c83687e6a2e08f
parent4e5cba5bb6f37ceaba6a2628a171cbede02f969c
RDMA/irdma: Remove redundant NULL check of udata in irdma_create_user_ah()

The variable udata cannot be NULL because irdma_create_user_ah() always
receives it. Therefore, the if() check can be safely removed.

Signed-off-by: Tuo Li <islituo@gmail.com>
Link: https://patch.msgid.link/20251112120253.68945-1-islituo@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/verbs.c