Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2907326pxb; Mon, 6 Sep 2021 08:00:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu9Ko+Ed3NhkbheeYj3+Xf02U0tiTRLQAA7BJu6UIIqDmc0cQrV+e2RJHIJsziH3cnyJNB X-Received: by 2002:a05:6402:1779:: with SMTP id da25mr13823091edb.200.1630940434308; Mon, 06 Sep 2021 08:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630940434; cv=none; d=google.com; s=arc-20160816; b=FUegJmXXx2Wlz96ne1EfVppEmON8Y2UtYXXYjOQqIFDEd/TpxmoeWC4y1oeodKqP1P ADoS9ok4hOSx098ON7mU6lKMYHKhro5vuAjK5LqPlRoCAi4JGF0rMGwdnpVw5z1QzK1r oVb/AiWBPBPU4AgpvnE5jqc+xa6NrBjQyVoXQM4UXjTNv3h4k2XuRBIvzHJ/qZPJEu0E Yu1IAeeWrTOeH44MBi+rxszmldCBuJ1MM7IDy7kTDWgF+NHVFRVOjev+qb2MvHjMAyNX umvHXkBAUEJehQ0C2j6BEQX+hfqUCnaKMu0zqxAnbkmbhlL69un+i+EYFbdfD4nqBzDg WXRg== 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=5u6hi4HwiVCaDjbpmGAprKoQnfw4+mfleQxCaltII+0=; b=ZiYPNBKMs3DznjwbBDZOu0/RDPUdc1q/ccJlvipUc7Xyve9Tqijz8eOY6KTbHg7Rlf qbXXJjjfDCkA47nC1QMEZoRQoZmk+qkH4Yf0owWayOej1ekWm9z4TaK2U8AajblBOpmS PsBOSmgcZlX1PZ0KmMkLcIQWb1tTMgUsQeSMnrk2wHMK9QJDf3e1drTaYtGu9UYOKohf FAH/FXCijrA400wiDqPOnCi5PL0oww2L5FPU6mwqXPMEenlwqDwCZ9eDfsWDLE7CxIR9 EXDkTIWQvt8XTHbCh0PdFHcKaxmtSUqM0O3SfkR61y59FfSMkrKTlcuk3GC0BLqw4fH2 x0kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si8238877edy.95.2021.09.06.08.00.11; Mon, 06 Sep 2021 08:00:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242710AbhIFNnR (ORCPT + 99 others); Mon, 6 Sep 2021 09:43:17 -0400 Received: from smtpbg587.qq.com ([113.96.223.105]:38239 "EHLO smtpbg587.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242225AbhIFNnR (ORCPT ); Mon, 6 Sep 2021 09:43:17 -0400 X-QQ-mid: bizesmtp44t1630935649t50rakj1 Received: from localhost.localdomain (unknown [171.223.98.107]) by esmtp6.qq.com (ESMTP) with id ; Mon, 06 Sep 2021 21:40:48 +0800 (CST) X-QQ-SSF: 01000000004000C0D000B00A0000000 X-QQ-FEAT: XokQyc2mVUwxcgEl0jCU/fg+0KFIgWBbOOIJVvdcnqT8CtXtQD7gQvFfsYpPb 4OyjtSXZ41Uj23YWZoFr24L/WuOLZ/f5OK8izS+5cqPMwg0skXfBOvshPHhTv6/IO/qjYh3 kNop1FxnTvjlI0IlpKve7HDiBN/SmxBXI155HXXTKSt+almvM9ZevKhxaKnNZFCWaBve2r6 6y4eyVRKWi4JF6UXx437PhrHjOCph02qW99HI3DCZzl2nCvLGOx0BqCHP+/PJX8bhFZhAlY ldboUh6LAYG3S5a+7Veo01nm+2+1wRLWiWn/GDO8XVw9x+WzgjsvsKYSuMzT7ppbog1w== X-QQ-GoodBg: 0 From: Jason Wang To: linus.walleij@linaro.org Cc: geert+renesas@glider.be, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] pinctrl: renesas: no need to initialise global statics Date: Mon, 6 Sep 2021 21:40:40 +0800 Message-Id: <20210906134040.96642-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Global static variables dont need to be initialised to 0. Because the compiler will initialise them. Signed-off-by: Jason Wang --- drivers/pinctrl/renesas/core.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/renesas/core.c b/drivers/pinctrl/renesas/core.c index f2ab02225837..ef8ef05ba930 100644 --- a/drivers/pinctrl/renesas/core.c +++ b/drivers/pinctrl/renesas/core.c @@ -741,12 +741,12 @@ static int sh_pfc_suspend_init(struct sh_pfc *pfc) { return 0; } #define SH_PFC_MAX_REGS 300 #define SH_PFC_MAX_ENUMS 3000 -static unsigned int sh_pfc_errors __initdata = 0; -static unsigned int sh_pfc_warnings __initdata = 0; -static u32 *sh_pfc_regs __initdata = NULL; -static u32 sh_pfc_num_regs __initdata = 0; -static u16 *sh_pfc_enums __initdata = NULL; -static u32 sh_pfc_num_enums __initdata = 0; +static unsigned int sh_pfc_errors __initdata; +static unsigned int sh_pfc_warnings __initdata; +static u32 *sh_pfc_regs __initdata; +static u32 sh_pfc_num_regs __initdata; +static u16 *sh_pfc_enums __initdata; +static u32 sh_pfc_num_enums __initdata; #define sh_pfc_err(fmt, ...) \ do { \ -- 2.33.0