[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 05 May 2024 15:13:41 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Jules Irenge <jbi.octave@...il.com>
Cc: jgg@...pe.ca, wenglianfa@...wei.com, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org, lishifeng@...gfor.com.cn,
gustavoars@...nel.org
Subject: Re: [PATCH v2] RDMA/core: Remove NULL check before dev_{put, hold}
On Tue, 30 Apr 2024 23:47:45 +0100, Jules Irenge wrote:
> Coccinelle reports a warning
>
> WARNING: NULL check before dev_{put, hold} functions is not needed
>
> The reason is the call netdev_{put, hold} of dev_{put,hold} will check NULL
> There is no need to check before using dev_{put, hold}
>
> [...]
Applied, thanks!
[1/1] RDMA/core: Remove NULL check before dev_{put, hold}
https://git.kernel.org/rdma/rdma/c/48d80b484491f1
Best regards,
--
Leon Romanovsky <leon@...nel.org>
Powered by blists - more mailing lists