From bb8a14a3d8203f3af45f84c6169cc09ef56156a3 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 --- drivers/staging/gasket/gasket_page_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c index 722839603f20..b9304d221722 100644 --- a/drivers/staging/gasket/gasket_page_table.c +++ b/drivers/staging/gasket/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; -- 2.11.0