From: XU pengfei Date: Wed, 4 Jan 2023 05:52:29 +0000 (+0800) Subject: ext4: remove unnecessary variable initialization X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7fc51f923ea6b1c6f304789965414149eaedb358;p=linux.git ext4: remove unnecessary variable initialization Variables are assigned first and then used. Initialization is not required. Signed-off-by: XU pengfei Link: https://lore.kernel.org/r/20230104055229.3663-1-xupengfei@nfschina.com --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 9d9f414f99fec..9df913bdb4166 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -5788,7 +5788,7 @@ static int ext4_meta_trans_blocks(struct inode *inode, int lblocks, ext4_group_t groups, ngroups = ext4_get_groups_count(inode->i_sb); int gdpblocks; int idxblocks; - int ret = 0; + int ret; /* * How many index blocks need to touch to map @lblocks logical blocks