Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Bill Pemberton <wfp5p@virginia.edu>
CC: linux-ext4@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Bill Pemberton and committed by
Jiri Kosina
8ac97b74 c2d45b4d

+1 -1
+1 -1
fs/jbd2/journal.c
··· 1889 1889 BUG_ON(i >= JBD2_MAX_SLABS); 1890 1890 if (unlikely(i < 0)) 1891 1891 i = 0; 1892 - BUG_ON(jbd2_slab[i] == 0); 1892 + BUG_ON(jbd2_slab[i] == NULL); 1893 1893 return jbd2_slab[i]; 1894 1894 } 1895 1895