summaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorXU pengfei <xupengfei@nfschina.com>2023-01-04 13:52:29 +0800
committerTheodore Ts'o <tytso@mit.edu>2023-02-19 00:09:59 -0500
commit7fc51f923ea6b1c6f304789965414149eaedb358 (patch)
treec3582e493adf5334219b587a22fd20e82a89e52e /fs/ext4/inode.c
parent3f5424790d4377839093b68c12b130077a4e4510 (diff)
downloadlinux-7fc51f923ea6b1c6f304789965414149eaedb358.tar.gz
linux-7fc51f923ea6b1c6f304789965414149eaedb358.tar.bz2
linux-7fc51f923ea6b1c6f304789965414149eaedb358.zip
ext4: remove unnecessary variable initialization
Variables are assigned first and then used. Initialization is not required. Signed-off-by: XU pengfei <xupengfei@nfschina.com> Link: https://lore.kernel.org/r/20230104055229.3663-1-xupengfei@nfschina.com
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 9d9f414f99fe..9df913bdb416 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