x86: fix small sparse warning
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 31 Jan 2008 21:05:47 +0000 (22:05 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 31 Jan 2008 21:05:47 +0000 (22:05 +0100)
arch/x86/kernel/ds.c:226:9: warning: Using plain integer as NULL pointer

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ds.c

index 1c5ca4d187877544dc4838f39ee31ae8d0493448..dcd918c1580dfda5dc66c50d3d9d3492dde6fcee 100644 (file)
@@ -223,7 +223,7 @@ int ds_free(void **dsp)
        if (*dsp)
                kfree((void *)get_bts_buffer_base(*dsp));
        kfree(*dsp);
-       *dsp = 0;
+       *dsp = NULL;
 
        return 0;
 }