[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168054624617.6296.18087414911653959045.b4-ty@kernel.org>
Date: Mon, 03 Apr 2023 21:24:06 +0300
From: Leon Romanovsky <leon@...nel.org>
To: jgg@...pe.ca, Yang Li <yang.lee@...ux.alibaba.com>
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: Re: [PATCH -next] RDMA/cma: Remove NULL check before dev_{put, hold}
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@...nel.org>
Powered by blists - more mailing lists