On Tue, Jan 27, 2026 at 07:38:09AM +0100, Christoph Hellwig wrote: > PTR_ERR(ptr) == -EFOO checks if ptr is an error pointer for the errno > value -EFOO.
To reiterate (again): when ptr may or may not be an error pointer, it should be written as ptr == ERR_PTR(-EFOO), as is normally done. Otherwise an error code is being extracted from something that doesn't have an error code, which is nonsense, even if it works by accident. - Eric _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
