From: Harvey Harrison fs/jbd/revoke.c:176:29: warning: Using plain integer as NULL pointer fs/jbd/revoke.c:182:28: warning: Using plain integer as NULL pointer fs/jbd/journal.c:1622:2: warning: Using plain integer as NULL pointer fs/jbd/journal.c:1629:28: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison Cc: Signed-off-by: Andrew Morton --- fs/jbd/journal.c | 4 ++-- fs/jbd/revoke.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff -puN fs/jbd/journal.c~jbd-sparse-warnings-in-revokec-journalc fs/jbd/journal.c --- a/fs/jbd/journal.c~jbd-sparse-warnings-in-revokec-journalc +++ a/fs/jbd/journal.c @@ -1619,14 +1619,14 @@ static int journal_init_journal_head_cac { int retval; - J_ASSERT(journal_head_cache == 0); + J_ASSERT(!journal_head_cache); journal_head_cache = kmem_cache_create("journal_head", sizeof(struct journal_head), 0, /* offset */ SLAB_TEMPORARY, /* flags */ NULL); /* ctor */ retval = 0; - if (journal_head_cache == 0) { + if (!journal_head_cache) { retval = -ENOMEM; printk(KERN_EMERG "JBD: no memory for journal_head cache\n"); } diff -puN fs/jbd/revoke.c~jbd-sparse-warnings-in-revokec-journalc fs/jbd/revoke.c --- a/fs/jbd/revoke.c~jbd-sparse-warnings-in-revokec-journalc +++ a/fs/jbd/revoke.c @@ -173,13 +173,13 @@ int __init journal_init_revoke_caches(vo 0, SLAB_HWCACHE_ALIGN|SLAB_TEMPORARY, NULL); - if (revoke_record_cache == 0) + if (!revoke_record_cache) return -ENOMEM; revoke_table_cache = kmem_cache_create("revoke_table", sizeof(struct jbd_revoke_table_s), 0, SLAB_TEMPORARY, NULL); - if (revoke_table_cache == 0) { + if (!revoke_table_cache) { kmem_cache_destroy(revoke_record_cache); revoke_record_cache = NULL; return -ENOMEM; _