Skip to content

Commit

Permalink
jbd2: use NULL instead of 0 when pointer is needed
Browse files Browse the repository at this point in the history
Fixes sparse warning:

fs/jbd2/journal.c:1892:9: warning: Using plain integer as NULL pointer

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
CC: linux-ext4@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Bill Pemberton authored and Jiri Kosina committed May 11, 2010
1 parent c2d45b4 commit 8ac97b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ static struct kmem_cache *get_slab(size_t size)
BUG_ON(i >= JBD2_MAX_SLABS);
if (unlikely(i < 0))
i = 0;
BUG_ON(jbd2_slab[i] == 0);
BUG_ON(jbd2_slab[i] == NULL);
return jbd2_slab[i];
}

Expand Down

0 comments on commit 8ac97b7

Please sign in to comment.