diff options
| author | Tuo Li <islituo@gmail.com> | 2025-11-12 20:02:53 +0800 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2025-11-12 07:10:25 -0500 |
| commit | a49a9f4555bde0b008f2225620ae1b2480d2b627 (patch) | |
| tree | d061e15f8b825451d5a24231c6c83687e6a2e08f | |
| parent | 4e5cba5bb6f37ceaba6a2628a171cbede02f969c (diff) | |
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>
| -rw-r--r-- | drivers/infiniband/hw/irdma/verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c index 66ecaa0f5be6..5fb6014ab8cb 100644 --- a/drivers/infiniband/hw/irdma/verbs.c +++ b/drivers/infiniband/hw/irdma/verbs.c @@ -5210,7 +5210,7 @@ static int irdma_create_user_ah(struct ib_ah *ibah, struct irdma_ah *parent_ah; int err; - if (udata && udata->outlen < IRDMA_CREATE_AH_MIN_RESP_LEN) + if (udata->outlen < IRDMA_CREATE_AH_MIN_RESP_LEN) return -EINVAL; err = irdma_setup_ah(ibah, attr); |