From 1b13804ed55e13f44764a6e9f416bf612069a81a Mon Sep 17 00:00:00 2001 From: Dmitriy Cherkasov Date: Sat, 28 Jul 2018 22:55:24 +0000 Subject: [PATCH] staging: gasket: use NULL instead of 0 for null pointer Fixes sparse warning: Using plain integer as NULL pointer Signed-off-by: Dmitriy Cherkasov Signed-off-by: Greg Kroah-Hartman --- gasket_page_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gasket_page_table.c b/gasket_page_table.c index 7228396..b9304d2 100644 --- a/gasket_page_table.c +++ b/gasket_page_table.c @@ -1605,7 +1605,7 @@ nomem: 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;