projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2d45b4
)
jbd2: use NULL instead of 0 when pointer is needed
author
Bill Pemberton
<wfp5p@virginia.edu>
Fri, 30 Apr 2010 13:34:31 +0000
(09:34 -0400)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 11 May 2010 08:04:36 +0000
(10:04 +0200)
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>
fs/jbd2/journal.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/jbd2/journal.c
b/fs/jbd2/journal.c
index c03d4dce4d76a0751ae9eee57066a77f0bfb0fb6..bc2ff5932769199f271db9055f7881b2e9c4bf54 100644
(file)
--- a/
fs/jbd2/journal.c
+++ b/
fs/jbd2/journal.c
@@
-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];
}