Re: net: rnpgbe: Pass an expression directly in rnpgbe_rm_adapter()

From
Markus Elfring <hidden>
Date
2026-07-16 09:49:25
Also in
kernel-janitors, lkml
Reply to
Dan Carpenter, 2026-07-16
In C writing if (!p) and if (p == NULL) are always equivalent but weirdly
the NULL doesn't have to zero.  It's part of the C FAQ.
https://c-faq.com/null/machexamp.html It's just a bit of fun trivia that
doesn't really matter unless you have a time machine.  Even if you invented
a time machine, the code here would still be fine because we have a NULL
test before dereferencing the results of our pointer math.
Which expression evaluations would you interpret as pointer dereferences finally?
https://c-faq.com/sx1/

Regards,
Markus
Thread (23 messages) 23 messages, 6 authors, last reply 2026-07-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help