Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3729683rdb; Wed, 27 Dec 2023 19:21:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2S79AQMVCLsmH/Iil3anJ64r4ENN+mfQbeXHLboXWFffPR0hTBmMo+6PM3z1JUHBLUDuu X-Received: by 2002:a05:600c:5405:b0:40d:3543:1b77 with SMTP id he5-20020a05600c540500b0040d35431b77mr4977132wmb.97.1703733670215; Wed, 27 Dec 2023 19:21:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703733670; cv=none; d=google.com; s=arc-20160816; b=asfG3AwfTqKueRYN/ztIt1c4BESadgpgL2RnB6VmtIMmM3xdaz9weCFiICVALAtKDq lpUE2rV0HrGJanIaLPEHLPFmpfMkbQFmTmMClz0G9ORw4pVdRCGybWoDN8bugBzLf3FD cBs0XMqt0U97+Y8HcCCHq2XZqYthkD85vK0aSqbMVHuUZb94q0LYL03nPKMIODZJs/XV eM4I33GAo1PWmntqeW/RfDyoXx66QC4FQk3eY71V1Smp0IErt4gEdnrlTr5E/xmJSqSj V95bxSHySrVY0l9JBMGN+H50gpULx1nsaMSkR4hJRYk3tMFeEOon2mL+aSSYJExJYX6u YlcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=qU9Iav7ANwC4ZtvJgo+HSYxWqONp7mX+e1X6MhGtuQk=; fh=IzSFRxsoHPKAHnIzT9loNGJhteyATfBRyrWDG5y974k=; b=eDp203zK+4aAJb8UrvvSqt9h7cOlOGPZBJrxbWY0C4yYGnw0GdwpDScjQzmVeHV8HV Ye3nqeNctxU2MlnfUhLukyoWO7GgifcXZsSlmoWO3SF3XRzEHDIVcl8BrvVb0CpLIyey i2egn28c1g+x2nLqci0ria/yMGXFJHkrk1BHORI8AYzaISUH9HCKN7PXxmJm9ZGwUlUi kUcavu9v8OpRD1FoMohpCJ5bxkmAhYcwM9e/cUYbqmUas7nbfHplpqiY2ha5Jmf7evsQ 8LYMYtkhbCznIIjjMwjGFFXglkeLKjR5DkgyBtejsZkUCllrPoiX7GK9/UoS1zsEqAyh MZnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12408-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c6-20020a17090603c600b00a2435495b97si6348532eja.918.2023.12.27.19.21.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 19:21:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12408-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E78631F221CF for ; Thu, 28 Dec 2023 03:21:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2473915A8; Thu, 28 Dec 2023 03:21:01 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id A05E8137B for ; Thu, 28 Dec 2023 03:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id B414B6019FAD7; Thu, 28 Dec 2023 11:20:52 +0800 (CST) X-MD-Sfrom: kunyu@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li kunyu To: tglx@linutronix.de, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] =?UTF-8?q?kernel:=20cpu:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20err?= Date: Thu, 28 Dec 2023 11:20:51 +0800 Message-Id: <20231228032051.13440-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The err variable is assigned when it does not need to be defined, as it has already been assigned before use. Signed-off-by: Li kunyu --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index c1f331ddf0dc7..bea9cd176449e 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -1720,7 +1720,7 @@ static int _cpu_up(unsigned int cpu, int tasks_frozen, enum cpuhp_state target) static int cpu_up(unsigned int cpu, enum cpuhp_state target) { - int err = 0; + int err; if (!cpu_possible(cpu)) { pr_err("can't online cpu %d because it is not configured as may-hotadd at boot time\n", -- 2.18.2