Re: [PATCH] staging: comedi: serial2002: quiet NULL pointer sparse noise

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

 



On Fri, Jun 08, 2012 at 07:46:19AM +0100, Ian Abbott wrote:
> On 08/06/12 01:14, H Hartley Sweeten wrote:
> >Quiet a number of sparse warnings in this file:
> >
> >warning: Using plain integer as NULL pointer
> 
> I wonder why sparse warns about that for a literal, unadorned 0?  I
> suppose NULL is more explicit, but a plain 0 means the same as NULL
> in a pointer context (unlike a zero from some random expression).
> 

http://lwn.net/Articles/93574/

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux