[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <166971371504.18968.8462013076488687681.b4-ty@kernel.org>
Date: Tue, 29 Nov 2022 11:21:55 +0200
From: Leon Romanovsky <leon@...nel.org>
To: zhang.songyi@....com.cn
Cc: jgg@...pe.ca, linux-rdma@...r.kernel.org,
zhangsongyi.cgel@...il.com, yishaih@...dia.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH rdma-next] RDMA/mlx4: remove NULL check before dev_{put, hold}
On Tue, 29 Nov 2022 15:54:07 +0800 (CST), zhang.songyi@....com.cn wrote:
> From: zhang songyi <zhang.songyi@....com.cn>
>
> 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@...nel.org>
Powered by blists - more mailing lists