lkml.org 
[lkml]   [2021]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] scsi: qedf: Drop unnecessary NULL checks after container_of
From
Date

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

\
 
 \ /
  Last update: 2021-05-15 04:43    [W:0.382 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site