mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
staging: gasket: use NULL instead of 0 for null pointer
Fixes sparse warning: Using plain integer as NULL pointer Signed-off-by: Dmitriy Cherkasov <dmitriy@oss-tech.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5b6e80cc98
commit
bb8a14a3d8
|
|
@ -1605,7 +1605,7 @@ int gasket_alloc_coherent_memory(struct gasket_dev *gasket_dev, u64 size,
|
|||
|
||||
if (gasket_dev->page_table[index]->coherent_pages) {
|
||||
kfree(gasket_dev->page_table[index]->coherent_pages);
|
||||
gasket_dev->page_table[index]->coherent_pages = 0;
|
||||
gasket_dev->page_table[index]->coherent_pages = NULL;
|
||||
}
|
||||
gasket_dev->page_table[index]->num_coherent_pages = 0;
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user