Commit 8ac97b74 authored by Bill Pemberton's avatar Bill Pemberton Committed by Jiri Kosina

jbd2: use NULL instead of 0 when pointer is needed

Fixes sparse warning:

fs/jbd2/journal.c:1892:9: warning: Using plain integer as NULL pointer
Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
CC: linux-ext4@vger.kernel.org
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c2d45b4d
...@@ -1889,7 +1889,7 @@ static struct kmem_cache *get_slab(size_t size) ...@@ -1889,7 +1889,7 @@ static struct kmem_cache *get_slab(size_t size)
BUG_ON(i >= JBD2_MAX_SLABS); BUG_ON(i >= JBD2_MAX_SLABS);
if (unlikely(i < 0)) if (unlikely(i < 0))
i = 0; i = 0;
BUG_ON(jbd2_slab[i] == 0); BUG_ON(jbd2_slab[i] == NULL);
return jbd2_slab[i]; return jbd2_slab[i];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment