mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
4e5cba5bb6
commit
a49a9f4555
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue