aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTian Tao <[email protected]>2021-05-20 14:55:52 +0800
committerTheodore Ts'o <[email protected]>2021-06-22 21:34:17 -0400
commitb2d2e7573548295a14db999095fd1df40352c91a (patch)
treea36a90156afaaf254fb845021dd590014407c4ec
parentfd7b23be92059f14537cb9cac0f0894c3a9b1284 (diff)
ext4: remove set but rewrite variables
In the ext4_dx_add_entry function, the at variable is assigned but will reset just after “again:” label. So delete the unnecessary assignment. this will not chang the logic. Signed-off-by: Tian Tao <[email protected]> Reviewed-by: Artem Blagodarenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
-rw-r--r--fs/ext4/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index a4af26d4459a..5fd56f616cf0 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -2499,7 +2499,7 @@ again:
/* Which index block gets the new entry? */
if (at - entries >= icount1) {
- frame->at = at = at - entries - icount1 + entries2;
+ frame->at = at - entries - icount1 + entries2;
frame->entries = entries = entries2;
swap(frame->bh, bh2);
}