Re: [PATCH rdma-next] RDMA/mlx4: remove NULL check before dev_{put, hold}

From: Leon Romanovsky
Date: Tue Nov 29 2022 - 04:22:05 EST


On Tue, 29 Nov 2022 15:54:07 +0800 (CST), zhang.songyi@xxxxxxxxxx wrote:
> From: zhang songyi <zhang.songyi@xxxxxxxxxx>
>
> The call netdev_{put, hold} of dev_{put, hold} will check NULL,
> so there is no need to check before using dev_{put, hold}.
>
> Fix the following coccicheck warnings:
> /drivers/infiniband/hw/mlx4/main.c:1311:2-10: WARNING:
> WARNING NULL check before dev_{put, hold} functions is not needed.
>
> [...]

Applied, thanks!

[1/1] RDMA/mlx4: remove NULL check before dev_{put, hold}
https://git.kernel.org/rdma/rdma/c/7ff54cf9f514c2

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