[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq11ra8btvc.fsf@ca-mkp.ca.oracle.com>
Date: Fri, 14 May 2021 22:42:23 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Saurav Kashyap <skashyap@...vell.com>,
Javed Hasan <jhasan@...vell.com>,
GR-QLogic-Storage-Upstream@...vell.com,
"James E . J . Bottomley" <jejb@...ux.ibm.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: qedf: Drop unnecessary NULL checks after
container_of
Guenter,
> The result of container_of() operations is never NULL unless the
> embedded element is the first element of the structure, which is not
> the case here. The NULL checks are therefore unnecessary and
> misleading. Remove them.
Applied to 5.14/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists