On Thu, 7 Mar 2024 22:02:29 +0000 James Dutton wrote: > If one does a NULL check after it has been previously dereferenced, > the compiler will totally remove the NULL check anyway, I think the kernel uses -fno-delete-null-pointer-checks. But anyway, this doesn't invalidate the point of having a NULL check. The intent of the code was very clear. So don't remove it. -- Michael Büsch https://bues.ch/