Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2270708pxj; Sun, 16 May 2021 20:46:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww0EAOYTo0fx3GdZiVzxkbLNHbNDXq5Ir/QKJnZrMMJAmDT9fUQIyHNvstfF4FDjnDL9FR X-Received: by 2002:a05:6e02:1aa9:: with SMTP id l9mr51150708ilv.24.1621223166180; Sun, 16 May 2021 20:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621223166; cv=none; d=google.com; s=arc-20160816; b=iD1d+Ynu1P5C0DtB9E5tqZkGTaQmjEinIgLl9tLRyLZSbmFC42A/erht+YjO8dge7+ pci9gT4z5LJhVaq/pyayQwoJl+AyU+Zy7iPAX3HnmnBNuJq2FGhOJwA56CHrF4a31QfP kdt8WfPe7DJ2F9zBkdRgSm98eeCneYFrAGzQhW0K4e0g21Da1IZNZvTyef+vCvCgpvDE FAh8oJ2EkB5/ln+IN5KShhcmyOUa9N/iRKY7LKBtdB3MRIngTO7MwnpHMsgQf+20Spxo Z0a1K6DJugdmn6vVPCBupNyA9oEg6kMp8SrqFrWsCbrBSqNOpwbbz6BMnJoNsDwwwIdE Lrsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=92okkF+QmFrwK+YwCvn+D4pug5WvLLrUGVBmLNfrAjA=; b=UP76eWoB3x5gTZRPxg1CyK9D0r3tOUxN5oTA3KqWJINN9cCz1wGMZX8NS52JSMLTrt of81G9zoJEHcGcvs1Vb+/vrxIGyAfnjxaRNSHCzNT4sSp8F3hp2J8CQJIjAaskrUzzDh ZTzepwq1Ct1ChoISp11iisGj8hipZLzSpMCJfgswcylI92+urxCW/oAdrg0ZWBUXAw4f VPl9x6zJs/cT7WK1gsyxrd+Z2Sc2K1EpziRHfltVfffx5ryLqPt2eBJoFWR0HYprkCFB tO3sxDcMJI8GScJ6Ji4XUwji1OvHOETR8aqdMhSJvfaI6wTXoFl9ZQEqo7RBAWItaG/d 7USQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si17292297jao.7.2021.05.16.20.45.45; Sun, 16 May 2021 20:46:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233826AbhEQC50 (ORCPT + 99 others); Sun, 16 May 2021 22:57:26 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3558 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233809AbhEQC50 (ORCPT ); Sun, 16 May 2021 22:57:26 -0400 Received: from dggems705-chm.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Fk3bl4VfvzmWH5; Mon, 17 May 2021 10:53:23 +0800 (CST) Received: from dggeme759-chm.china.huawei.com (10.3.19.105) by dggems705-chm.china.huawei.com (10.3.19.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 17 May 2021 10:56:05 +0800 Received: from localhost.localdomain (10.69.192.56) by dggeme759-chm.china.huawei.com (10.3.19.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 17 May 2021 10:56:05 +0800 From: Tian Tao To: , CC: , Tian Tao Subject: [PATCH] ext4: remove set but rewrite variables Date: Mon, 17 May 2021 10:56:05 +0800 Message-ID: <1621220165-11849-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggeme759-chm.china.huawei.com (10.3.19.105) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org In line 2500 of the ext4_dx_add_entry function, the at variable is assigned but not used, and it is reassigned in line 2449, so delete the assignment of the at variable in line 2500. Signed-off-by: Tian Tao --- fs/ext4/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index afb9d05..18bbf15 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -2497,7 +2497,7 @@ static int ext4_dx_add_entry(handle_t *handle, struct ext4_filename *fname, /* 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); } -- 2.7.4