Messages in this thread Patch in this message |  | | | Date | Fri, 6 Nov 2009 23:45:05 -0200 | | Subject | Re: [PATCH v2] staging/otus: trivial, fix sparse warnig. | | From | Thiago Farina <> |
| |
*apdbg.c: use NULL pointer instead of 0 integer.
Signed-off-by: Thiago Farina <tfransosi@gmail.com> --- drivers/staging/otus/apdbg.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/otus/apdbg.c b/drivers/staging/otus/apdbg.c index d3e2f62..70a40b8 100644 --- a/drivers/staging/otus/apdbg.c +++ b/drivers/staging/otus/apdbg.c @@ -109,7 +109,7 @@ int set_ioctl(int sock, struct ifreq *req)
int read_reg(int sock, struct ifreq *req) { - struct zdap_ioctl *zdreq = 0; + struct zdap_ioctl *zdreq = NULL;
if (!set_ioctl(sock, req)) return -1; @@ -123,7 +123,7 @@ int read_reg(int sock, struct ifreq *req)
int read_mem(int sock, struct ifreq *req) { - struct zdap_ioctl *zdreq = 0; + struct zdap_ioctl *zdreq = NULL; int i;
if (!set_ioctl(sock, req))
|  |