From: Theodore Ts'o Date: Sun, 21 Mar 2021 04:45:37 +0000 (-0400) Subject: ext4: initialize ret to suppress smatch warning X-Git-Tag: baikal/aarch64/sdk6.1~6986^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=511309b8fe2c570eef2f80e3266d7819b57c2701;p=kernel.git ext4: initialize ret to suppress smatch warning Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 77c7c8a54da73..77c84d6f1af6b 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -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;