Re: [PATCH] Allow NULL pointers in percpu_free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 17 Nov 2006, Daniel Walker wrote:

> On Fri, 2006-11-17 at 12:36 -0500, Alan Stern wrote:
> 
> >  void percpu_free(void *__pdata)
> >  {
> > +	if (!__pdata)
> > +		return;
> 
> Should be unlikely() right?

It certainly could be.  I tend not to put such annotations in my code, but 
it wouldn't hurt.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux