diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2021-05-20 09:55:52 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-06-23 04:34:17 +0300 |
commit | b2d2e7573548295a14db999095fd1df40352c91a (patch) | |
tree | a36a90156afaaf254fb845021dd590014407c4ec /fs/ext4 | |
parent | fd7b23be92059f14537cb9cac0f0894c3a9b1284 (diff) | |
download | linux-b2d2e7573548295a14db999095fd1df40352c91a.tar.xz |
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 <tiantao6@hisilicon.com>
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@gmail.com>
Link: https://lore.kernel.org/r/1621493752-36890-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/namei.c | 2 |
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); } |