Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4419386iob; Sun, 8 May 2022 12:06:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFJpPyN1OcYhJFnNTsLGT9SxLIvdfubtsQ922xOaAGzOl3bsCNacTBTe50jMSS4w8QUzTV X-Received: by 2002:a05:6402:1910:b0:428:1817:6f2f with SMTP id e16-20020a056402191000b0042818176f2fmr13912194edz.354.1652036799845; Sun, 08 May 2022 12:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652036799; cv=none; d=google.com; s=arc-20160816; b=bun1aeTLeamGu9Q4dK4XltXf8QDXwzy3GTvbSeofaeaizgGOwpZMbeX4ZVN7zwbLuK uucPvAoJT3wmxqTV+LVOKxyNsgu3s6AEaZ/PAjpgwknZTCYf0trzjLoS03j7aLpaPrCe zt1Gjtzbs1uXqrN8/lJbkwarYCeDbNPk69zf+eCbGhnMYdSgmTIiYgUdzdDtb+zyHT0T q9fQ5qpBRq2laH5Uwe1R4QVRrBzsm8/ZfsfO9zcogO94jpslsNgfZ6i5kez7f8nzoSmu 04aEE5LO3Dfb5rnAh6iXvkb51K9DXleOIoNQMuwHE6OaidPi7dnj1GNdV6Nh+TMLjxb+ jrng== 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=zPHS/hv0y3vKdDvuTEYBw1lFYUrJsTTfC7X7P6lzEZw=; b=BzKiJ2JnsURHDNfC4Yr6aYTLP6FNfIFsgcN7BAIZucID+XO35DcWUQQzEVEtMWtos4 1Qhl1BpgqZjBACkICd24/WYt0BOGU2kR7LqVZFeRZxllgpvw3qVXmmFADsrDXcEoJzvT bEd0G7mLcxxDdxNmTfu0LBLjQf3x1XaDQy2rfsfv+ZtIMLT2j1cYTtmyZTQs/gkKfJwd d13gMLE/fpjHi7AXNtJgb/xO/U8hMjj+Tn3t8Tt+iB1B0KYsig/iTkFcWPUuChPw7Dwm KTfVMYSBuwQXbtwnJdwjK7TU6be+oWCGN9TWJjFftcld9Co089Go14O07frNOI1pyy7w DddQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a1709064a0700b006dfe7bc2fafsi10761716eju.56.2022.05.08.12.06.16; Sun, 08 May 2022 12:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383054AbiEHCfs (ORCPT + 99 others); Sat, 7 May 2022 22:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381840AbiEHCfr (ORCPT ); Sat, 7 May 2022 22:35:47 -0400 Received: from smtpbg.qq.com (smtpbg136.qq.com [106.55.201.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D78C310FED; Sat, 7 May 2022 19:31:54 -0700 (PDT) X-QQ-mid: bizesmtp71t1651977109tdkre7k6 Received: from localhost.localdomain ( [125.69.42.80]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 08 May 2022 10:31:48 +0800 (CST) X-QQ-SSF: 01000000002000E0S000B00A0000000 X-QQ-FEAT: F3yR32iATbhVoP/UdK+aSM1hXbaRJ4vnXPb7LPBb9R2nuCQZ7cjs9VD0o0UU2 0rkzMPStiEeeebPnFUFRUAMDPRH5GAfySTSubZC0jPGeK65XqV4xpHBcqE5UkWrJhpn+vCB uOWQX6STRxLVfNoaXtZPuKJmO3TS3oLlz6Hju0FF89Q9jWRy8fU8U3Qtio62iyiff7Uh789 6vyukJIJBKHvhUl4ps9E9449wS4U4/JNk+tCU5G3iHtNzIbcSj8EyUJ9A3zdkq/DAhYzLVf I+dQi96E3sgAinOdZARb8qEZ6+9DmjpT5hsyyh7EvglrS0pOuRS8IVw+UDgCKsUYleABAD8 r/uqhtdwLOcprhn2VltsKLQgKoxDw== X-QQ-GoodBg: 0 From: Jason Wang To: tsbogend@alpha.franken.de Cc: wangborong@cdjrlc.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: tools: no need to initialise statics to 0 Date: Sun, 8 May 2022 10:31:46 +0800 Message-Id: <20220508023146.100385-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,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR autolearn=ham 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/mips/boot/tools/relocs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/tools/relocs.c b/arch/mips/boot/tools/relocs.c index 1bf53f3524b3..02fc85f3e8ff 100644 --- a/arch/mips/boot/tools/relocs.c +++ b/arch/mips/boot/tools/relocs.c @@ -351,7 +351,7 @@ static void read_symtabs(FILE *fp) static void read_relocs(FILE *fp) { - static unsigned long base = 0; + static unsigned long base; int i, j; if (!base) { -- 2.35.1