Re: [PATCH -next] RDMA/cma: Remove NULL check before dev_{put, hold}

From: Leon Romanovsky
Date: Mon Apr 03 2023 - 14:24:25 EST



On Fri, 31 Mar 2023 09:06:33 +0800, Yang Li wrote:
> The call netdev_{put, hold} of dev_{put, hold} will check NULL,
> so there is no need to check before using dev_{put, hold},
> remove it to silence the warnings:
>
> ./drivers/infiniband/core/cma.c:713:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
> ./drivers/infiniband/core/cma.c:2433:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
>
> [...]

Applied, thanks!

[1/1] RDMA/cma: Remove NULL check before dev_{put, hold}
https://git.kernel.org/rdma/rdma/c/08ebf57f6e1d73

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>