Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6548573ybi; Mon, 8 Jul 2019 04:52:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEQKqFWhlY0nRdYa4PxIQ8/pYRgNRlhaNtwKuovzPpINqlW6db1C2SaDbngbzrHRQnK20G X-Received: by 2002:a63:c302:: with SMTP id c2mr21879810pgd.300.1562586737973; Mon, 08 Jul 2019 04:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562586737; cv=none; d=google.com; s=arc-20160816; b=HaULJGkSu1LZs2SQv9DQKDQQ9Dsi3agRTDu2UE1PKgSjnTmxYGaoVYs7R5wTDHpe7b P2miZsSuQicfMggH6W27iZhc/OpK+zDr4F3KXpJKhmwuX6z5t4SQmS/B0T12ZEmC/KkP K9Q/HnMHpXXfOw1A1irKoCxC9WHJqN6a8RNxGqL0Pj6JZrPiZSUwZ/ke2yb68mg42r34 mc4xxzXAVpHDMaQdAmG/N76NLpiHnee+pyKsBO4qBsn7Xc9dQt+u6KYgR3r+0rZPrlyY 9FVSSDjl/kBlLvjfm5gfzPUOFH6hN+r7le40qRfDTgRgo+2IEVEhGHn1yTU3XEK4Sqpj RSqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=qAz5iY612BKiCIzCuUpu7/5cMI8SdsBik/o94m5Tc2U=; b=QSBNk6CxFzsFgZ+4/QBNXrAWzLe1A8+LvvIGiVA5Wwu+bjmTqRkCkILCJy6oiC0skc Gw0/3/LMi+IO4KdgQk7TZpHN2nj4XcNHKKyRjJLHwGqKdl3ICUdMAQoCMa69IAsCuTd3 slmDfbwbpjBNSAMY0ejtN97Pb3fojw0zw5VtIF1F07XRZKl7BxTMQVkHy9+N0lAIxDSl hMQo3NuBVGqBDEhQ4uK08RwypeFiL0Vu6UGagRkOnCMcN4xv1Ys1Ecvs315RSr+TaEug KxqMpfwDJpcoydRNEGIgwOL9qtGw+fIqTZ/nlMG9jTpdZ9GikfiA1z74TCjc4tqVpsPQ wsMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h125si19026040pfb.176.2019.07.08.04.52.03; Mon, 08 Jul 2019 04:52:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728972AbfGHI2e (ORCPT + 99 others); Mon, 8 Jul 2019 04:28:34 -0400 Received: from mga01.intel.com ([192.55.52.88]:39384 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfGHI2e (ORCPT ); Mon, 8 Jul 2019 04:28:34 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jul 2019 01:28:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,466,1557212400"; d="scan'208";a="170224078" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga006.jf.intel.com with ESMTP; 08 Jul 2019 01:28:32 -0700 From: Wei Yang To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, willy@infradead.org, will@kernel.org, peterz@infradead.org, Wei Yang Subject: [PATCH] mm: remove redundant assignment of entry Date: Mon, 8 Jul 2019 16:27:40 +0800 Message-Id: <20190708082740.21111-1-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since ptent will not be changed after previous assignment of entry, it is not necessary to do the assignment again. Signed-off-by: Wei Yang --- mm/memory.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index ddf20bd0c317..d108bb979a08 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1127,7 +1127,6 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb, if (unlikely(details)) continue; - entry = pte_to_swp_entry(ptent); if (!non_swap_entry(entry)) rss[MM_SWAPENTS]--; else if (is_migration_entry(entry)) { -- 2.17.1