summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitriy Cherkasov <dmitriy@oss-tech.org>2018-07-28 22:55:24 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-29 08:05:45 +0200
commitbb8a14a3d8203f3af45f84c6169cc09ef56156a3 (patch)
treef21f6ce2403142858a80606f0ab0ca589a234171 /drivers
parent5b6e80cc9806a5cf78f68df2b6b64812b51d91c9 (diff)
downloadlinux-bb8a14a3d8203f3af45f84c6169cc09ef56156a3.tar.bz2
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/gasket/gasket_page_table.c2
1 files changed, 1 insertions, 1 deletions
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;