Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp360668rdb; Mon, 18 Sep 2023 18:43:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJCktnSXdfb/tUArCaC7ItOD8j1eufAZRK6QbYaaezPQlVV2ggpD23SO5XNd/+6nkii0ho X-Received: by 2002:a17:903:186:b0:1bd:aeb3:9504 with SMTP id z6-20020a170903018600b001bdaeb39504mr13985816plg.15.1695087830049; Mon, 18 Sep 2023 18:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695087830; cv=none; d=google.com; s=arc-20160816; b=CB+7Ub5forqXiJEwFwSIc3TQYsyIx/Jk9p+A26d3/yruNOC8SJ1B4BPqusSJb2SUj+ hAPDJtFCz/ZiVFcjSt+qOokHz/guqj6hV+5JutgWdXyIC6wIuaeH3qCU4BFzAqO4Tb61 a+aBMau1vN1/g+GB0R9MNU/vffR9OIAj4RdgnVRs0EeauFySrlMYkkhuKNNGd+MOJXkR cMgXJ6KozSH98uGSQZjiMKzInef/qU+NOA9eBQ633PjqO2PMnIhqX4MwkEYvlboEkgkt BxM0iMYnHGyONbYkszm3wAdD71imvT4HDEd+t534CI8ueTCRbEQ5Sk5XR/R9ICnU0nGq TCPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gI3UZLstAq/14G5ifOvn0kzR29tTf4wJzjILMyiSgVg=; fh=8XpIR3SRSGpiTuoD3koJVBchjt4kyPMccuJ+vR8LWyU=; b=hHzEPZBP/QiwZDvAw8GdDKxL0sN3zvTYb5Lzohge/O5mywhyhE4CMNeqBq2KqEh5Qg R0F7Nc2iX0vSMaMq3/Z/MFQHiqxyG/9D063wI0teK7/oHZAoAUGCp9ZHxvd7UU2ooOXx eQLnnpSgRjGvrQIBwWL1bwmUu74XijsMQY3rLtO+EBJcc6lxHCh+Rcj54xUNE4s930oX n7AQhztO/JVr93ihZeocvgX75hnPUvW28CFK7xFaFjSULE6mI2bXNc0nV7a/DNzFVCRJ DvXWX1+++00GiJXLkjqOP0T+/6IhRCFdOfoRHUM93ND85wAZ1J4AUY2wGAhHZf7MmbAr L7gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u7-20020a170903124700b001bdc664cd5fsi9299487plh.168.2023.09.18.18.43.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 18:43:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 43A8680A1E36; Mon, 18 Sep 2023 18:41:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230463AbjISBlx (ORCPT + 99 others); Mon, 18 Sep 2023 21:41:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbjISBlw (ORCPT ); Mon, 18 Sep 2023 21:41:52 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 5FE3910D for ; Mon, 18 Sep 2023 18:41:46 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id D3F6460292BAF; Tue, 19 Sep 2023 09:41:43 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: linux-kernel@vger.kernel.org Cc: Li zeming Subject: [PATCH] =?UTF-8?q?profile:=20Remove=20unnecessary=20=E2=80=980?= =?UTF-8?q?=E2=80=99=20values=20from=20err?= Date: Tue, 19 Sep 2023 09:41:26 +0800 Message-Id: <20230919014126.8168-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 18:41:51 -0700 (PDT) err is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/profile.c b/kernel/profile.c index 8a77769bc4b4..87acc7a9d7e2 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -465,7 +465,7 @@ int __ref create_proc_profile(void) enum cpuhp_state online_state; #endif - int err = 0; + int err; if (!prof_on) return 0; -- 2.18.2