Commit ee90d57e authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Theodore Ts'o

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent e6705f7c
...@@ -2291,7 +2291,7 @@ static int ext4_remove_blocks(handle_t *handle, struct inode *inode, ...@@ -2291,7 +2291,7 @@ static int ext4_remove_blocks(handle_t *handle, struct inode *inode,
start = ext4_ext_pblock(ex); start = ext4_ext_pblock(ex);
ext_debug("free first %u blocks starting %llu\n", num, start); 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 { } else {
printk(KERN_INFO "strange request: removal(2) " printk(KERN_INFO "strange request: removal(2) "
......
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