From patchwork Fri May 24 09:13:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13672915 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4779982885; Fri, 24 May 2024 09:16:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716542193; cv=none; b=IBmfX1KEJwThz/EXSDrPV2cMRt2E3d6q0+3iRSqq+zwtrtSoI7JIm6E1fdn/TNhAOyVOQn0yFw8vby/CPYR+MrGnbo2+JCs1lfntUgPVKozlddb/9U6oQvyorYp6jWvPFqWT8fd2LHKfS4BOIr/HDx357cUaEujKvZ5x2Hyo2qM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716542193; c=relaxed/simple; bh=a+7i6UVr7s1OvZFPMfTnRq3Y4SPsKMN0sA81gMMzokA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Fi8zw9QWGN4qndN17kR8yf+JySUe/Nbx8m+V4U78kUzC9JjeXIUr2s/u6LIZKYGXk2Hw6G+sus8VmgZxpS4hO6Q/p5feVQwGDbBPJjApF74JLxaBElL1hQAzcIfCJnUrVfEwjs1SjJFK17jGU+WDpn8imQQuQ1PrzlXratHIimE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VlzsB3xbCzchZC; Fri, 24 May 2024 17:15:10 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 0DD9F140132; Fri, 24 May 2024 17:16:29 +0800 (CST) Received: from huawei.com (10.173.135.154) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 24 May 2024 17:16:28 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH 06/13] mm/memory-failure: remove confusing initialization to count Date: Fri, 24 May 2024 17:13:03 +0800 Message-ID: <20240524091310.1430048-7-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240524091310.1430048-1-linmiaohe@huawei.com> References: <20240524091310.1430048-1-linmiaohe@huawei.com> Precedence: bulk X-Mailing-List: linux-edac@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) It's meaningless and confusing to init local variable count to 1. Remove it. No functional change intended. Signed-off-by: Miaohe Lin --- mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index c09e1bf83682..be9bda281d91 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -2573,7 +2573,7 @@ int unpoison_memory(unsigned long pfn) struct folio *folio; struct page *p; int ret = -EBUSY, ghp; - unsigned long count = 1; + unsigned long count; bool huge = false; static DEFINE_RATELIMIT_STATE(unpoison_rs, DEFAULT_RATELIMIT_INTERVAL, DEFAULT_RATELIMIT_BURST);