mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 02:01:29 +00:00
x86: fix small sparse warning
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>
This commit is contained in:
parent
706b7e1573
commit
072b7a58ca
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user