Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4891751iob; Mon, 9 May 2022 04:13:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1RhGbi/PrRJflQeclqMOgVpFDILPrLv4hAnpfWBo84iVwh4hReKOQ8By/sbX1XD3CL/EE X-Received: by 2002:aa7:9852:0:b0:50d:6d10:2094 with SMTP id n18-20020aa79852000000b0050d6d102094mr15761020pfq.4.1652094821721; Mon, 09 May 2022 04:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652094821; cv=none; d=google.com; s=arc-20160816; b=0EGF69qQB9SIvRTlA/AzeqNBthte5pbLoghQ33ITwXaNj23g35nc/NEyhYpU6zpNDo fLC38gb/5iRtjTnew611M6XLvvEgQi+nbjXhFe6AQCw0FzEsIk/5p7ihGTFL0ITiZV47 L6Mz9JzB7/gcG9DKwG+UXxlRrRmn6bSZht6zpOYjcmURuJ8JcyEK6/ayVpK116pCAqXh rFhn1UlWqx5Ph11y+ijXmz3BMLZzcre+3LZ7qm52grG+qUynxFxx2yTIRX4KyaYJs/+5 HKiYtCVMuQYmMXYGO/fekdxhBCnZuv9zUjoVyfS47l4b/07Q4iAjngS57dhCwqMWdtfI /TPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=Pdvpq+8pAR9ZN12BzcpeE/LIAaz6J/5K//rDxGbN+Jc=; b=kjcQqNvMuMyKtsT/kgp6p5vJ1bvIIH06qBsyaUEB7cuUInBmpUIYmwOCpR2l9nA5/6 Lhsq3RcE10rSuTwRAFT7JW4F7G4TE+J/LRK1NZKLh5oCX9mYVhG8mW2QJmsWkqF3Co4y Uh9j8dDrUh0N9VOFgMMmX/oE4cBS03bjyW2b4BFWaNSrZOtHmfwzX/QehkLOxPgyRlTp J3RuAsFCApsOoCFvMVIRzUQ+Qg14+ehqhJMc6d2ogc2Hu+EwBuixJxg4BIoTzDvMtChh 8bC3j1wuIOnAFrZpv39Bu5jxCwQHFa860GuFKo+F8sIDc05jkcjLtGSMiTYVZtvugKv7 Ku4g== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d3-20020a170903230300b0015e8509c44dsi12733308plh.171.2022.05.09.04.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 04:13:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AC29A2421B9; Mon, 9 May 2022 03:25:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378580AbiEHCfb (ORCPT + 99 others); Sat, 7 May 2022 22:35:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbiEHCfa (ORCPT ); Sat, 7 May 2022 22:35:30 -0400 X-Greylist: delayed 68 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 07 May 2022 19:31:38 PDT Received: from smtpbg.qq.com (smtpbg136.qq.com [106.55.201.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42D3C10FED for ; Sat, 7 May 2022 19:31:38 -0700 (PDT) X-QQ-mid: bizesmtp70t1651976959tg41pyo4 Received: from localhost.localdomain ( [125.69.42.80]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 08 May 2022 10:29:17 +0800 (CST) X-QQ-SSF: 01000000002000E0S000B00A0000000 X-QQ-FEAT: geCjBjpTnm6wH8dkcfptTm/kV0xeKQiTfO8xFucTmeXpMaef0xVIeQzWjo/pd HFX9nuI6I03xLu9OxmVKcmtN9Kcvn5Is8fMTqirEQFQaq4UH4xAErWVOlDb02H/NObwpHvz Vc5aHd9tqX1lisXXcDKDaqQWh9N3f+iJE8PRBcYhxwUuBOcjfpXFMWHz2Oj6YCjGICs6jY8 2V7aqrWDU91ff/O2dBspMDrum2Vl4laO8GUAmsKe+kzYqv1WJdoLIEe5lEb06N4h63LZ3Kk 6dd93MguMzpHOuI2T38G0+4/mklhPPrEvQL4L/DIPhrTzW3ip2pp8Xq9h06zRlfw6Gmguvv FVrhnRHT/o3Sc3QCME= X-QQ-GoodBg: 0 From: Jason Wang To: jcmvbkbc@gmail.com Cc: chris@zankel.net, wangborong@cdjrlc.com, linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org Subject: [PATCH] xtensa: no need to initialise statics to 0 Date: Sun, 8 May 2022 10:29:10 +0800 Message-Id: <20220508022910.98481-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam7 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Static variables do not need to be initialised to 0, because compiler will initialise all uninitialised statics to 0. Thus, remove the unneeded initializations. Signed-off-by: Jason Wang --- arch/xtensa/platforms/xt2000/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/platforms/xt2000/setup.c b/arch/xtensa/platforms/xt2000/setup.c index 145d129be76f..0dc22c371614 100644 --- a/arch/xtensa/platforms/xt2000/setup.c +++ b/arch/xtensa/platforms/xt2000/setup.c @@ -78,7 +78,7 @@ void __init platform_init(bp_tag_t *first) void platform_heartbeat(void) { - static int i=0, t = 0; + static int i, t; if (--t < 0) { -- 2.35.1