lkml.org 
[lkml]   [2012]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] staging: comedi: serial2002: quiet NULL pointer sparse noise
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).

--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-


\
 
 \ /
  Last update: 2012-06-08 09:21    [W:0.046 / U:1.100 seconds]
©2003-2014 Jasper Spaans. Advertise on this site