From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00F08CD3430 for ; Tue, 19 Sep 2023 01:41:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230466AbjISBly (ORCPT ); Mon, 18 Sep 2023 21:41:54 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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