summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorXU pengfei <xupengfei@nfschina.com>2023-01-04 08:52:29 +0300
committerTheodore Ts'o <tytso@mit.edu>2023-02-19 08:09:59 +0300
commit7fc51f923ea6b1c6f304789965414149eaedb358 (patch)
treec3582e493adf5334219b587a22fd20e82a89e52e /fs/ext4
parent3f5424790d4377839093b68c12b130077a4e4510 (diff)
downloadlinux-7fc51f923ea6b1c6f304789965414149eaedb358.tar.xz
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')
-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