Re: net: rnpgbe: Pass an expression directly in rnpgbe_rm_adapter()
Markus Elfring <[email protected]> Thu, 16 Jul 2026 11:48:43 +0200
| Newsgroups | gmane.linux.network,gmane.linux.kernel.janitors,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
> 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