]> git.itanic.dy.fi Git - linux-stable/commitdiff
ext4: initialize ret to suppress smatch warning
authorTheodore Ts'o <tytso@mit.edu>
Sun, 21 Mar 2021 04:45:37 +0000 (00:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 21 Mar 2021 04:45:37 +0000 (00:45 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c

index 77c7c8a54da7371adc67e66287e6ddf68745fe2d..77c84d6f1af6b2489aa196e845f3b0b1a6060e83 100644 (file)
@@ -4382,7 +4382,7 @@ static int ext4_alloc_file_blocks(struct file *file, ext4_lblk_t offset,
 {
        struct inode *inode = file_inode(file);
        handle_t *handle;
-       int ret, ret2 = 0, ret3 = 0;
+       int ret = 0, ret2 = 0, ret3 = 0;
        int retries = 0;
        int depth = 0;
        struct ext4_map_blocks map;