From: Dmitriy Cherkasov Date: Sat, 28 Jul 2018 22:55:24 +0000 (+0000) Subject: staging: gasket: use NULL instead of 0 for null pointer X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bb8a14a3d8203f3af45f84c6169cc09ef56156a3;p=linux.git 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 --- diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c index 722839603f20d..b9304d221722b 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;