From: Tian Tao Date: Thu, 20 May 2021 06:55:52 +0000 (+0800) Subject: ext4: remove set but rewrite variables X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b2d2e7573548295a14db999095fd1df40352c91a;p=linux.git 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 Reviewed-by: Artem Blagodarenko Link: https://lore.kernel.org/r/1621493752-36890-1-git-send-email-tiantao6@hisilicon.com Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index a4af26d4459a3..5fd56f616cf0b 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); }