From patchwork Sun May 8 02:31:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 12842209 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 04FAAC433F5 for ; Sun, 8 May 2022 02:32:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229829AbiEHCfr (ORCPT ); Sat, 7 May 2022 22:35:47 -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 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam7 Precedence: bulk List-ID: X-Mailing-List: linux-mips@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) {