Skip to contentSkip to conversation

x86: fix small sparse warning

PATCH Applied Harvey Harrison 2 participants 2 messages Jan 31, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix small sparse warning

arch/x86/kernel/ds.c:226:9: warning: Using plain integer as NULL pointer

---
 arch/x86/kernel/ds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/ds.c +1 -1
index 1c5ca4d..dcd918c 100644
@@ -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;
 }
Signature · 1 line
1.5.4.rc4.1142.gf5a97
Applied
#1 lore raw

arch/x86/kernel/ds.c int ds_free(void **dsp) · line 226

Quoted 6 lines · Harvey Harrison

arch/x86/kernel/ds.c:226:9: warning: Using plain integer as NULL pointer

arch/x86/kernel/ds.c +1 -1
 	kfree(*dsp);
-	*dsp = 0;
+	*dsp = NULL;

thanks, applied.

Ingo