Fun with NULL pointers, part 2
Fun with NULL pointers, part 2
Posted Jul 21, 2009 23:32 UTC (Tue) by johill (subscriber, #25196)In reply to: Fun with NULL pointers, part 2 by ebiederm
Parent article: Fun with NULL pointers, part 2
Besides, depending on the platform the compiler could elide the BUG_ON(ptr == NULL) anyway, no? It's often just
if (unlikely(ptr == NULL))
out_of_line_bug();
or something like that?
