[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <142a9c03-574f-adcf-bc4d-bb2a25c01e88@wanadoo.fr>
Date: Tue, 17 May 2022 19:54:38 +0200
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: Jason Gunthorpe <jgg@...pe.ca>, Haowen Bai <baihaowen@...zu.com>
Cc: Dennis Dalessandro <dennis.dalessandro@...nelisnetworks.com>,
Leon Romanovsky <leon@...nel.org>, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] RDMA: remove null check after call container_of()
Le 17/05/2022 à 14:16, Jason Gunthorpe a écrit :
> On Tue, May 17, 2022 at 09:33:28AM +0800, Haowen Bai wrote:
>> container_of() will never return NULL, so remove useless code.
>
> It is confusing here, but it can be null.
Hi,
out of curiosity, can you elaborate how it can be NULL?
CJ
> If you want to do this then
> you have to split out the _ib_alloc_device call and check it
> seperately.
>
> Jason
>
Powered by blists - more mailing lists