Skip to content

Commit

Permalink
x86: fix small sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Jan 31, 2008
1 parent 706b7e1 commit 072b7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 072b7a5

Please sign in to comment.