diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2011-10-18 11:01:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-18 11:01:51 -0400 |
commit | ee90d57e20bd4749dda3b14397392b18b89dc3ef (patch) | |
tree | 907a2b9e6d96b5dc98037568775e04d0c0131dde /fs/ext4/extents.c | |
parent | e6705f7c255d1ffae7cd161d0b657296f4dd62fd (diff) | |
download | op-kernel-dev-ee90d57e20bd4749dda3b14397392b18b89dc3ef.zip op-kernel-dev-ee90d57e20bd4749dda3b14397392b18b89dc3ef.tar.gz |
ext4: quiet sparse noise about plain integer as NULL pointer
The third parameter to ext4_free_blocks is a struct buffer_head *. This
parameter should be NULL not 0.
This quiets the sparse noise:
warning: Using plain integer as NULL pointer
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 5c48612..2fc6cc0 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -2291,7 +2291,7 @@ static int ext4_remove_blocks(handle_t *handle, struct inode *inode, start = ext4_ext_pblock(ex); ext_debug("free first %u blocks starting %llu\n", num, start); - ext4_free_blocks(handle, inode, 0, start, num, flags); + ext4_free_blocks(handle, inode, NULL, start, num, flags); } else { printk(KERN_INFO "strange request: removal(2) " |