Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4662210iob; Sun, 8 May 2022 21:03:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3ehGL4bWheAZYoQvrubpqCHJtKywnG4ZbHMmkU5oTQO1TUH+pxYzLeJSdrV+K0cc2AYrP X-Received: by 2002:a05:6a02:10d:b0:381:f4c8:ad26 with SMTP id bg13-20020a056a02010d00b00381f4c8ad26mr11622411pgb.135.1652069009042; Sun, 08 May 2022 21:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652069009; cv=none; d=google.com; s=arc-20160816; b=hbUybDQ+OWu8JKBzKtWPsUIhYo3n5QnVs7ofjZJuhYTyZ5RG4NqFhMPZvoQa+0jl/S ZYw2CAZ9BGdRuzMPdYCeo0wFSM0kB+QuTZhcH95IMxgc9NK8VqqIjgFdiyxLOBTEr2VH ySmBB2Ou+P5tQ5OQNBEbX7AY6bdQqO3BQ1zclPBMBVZ6bdJfN5Zr5o+V5BMfZfV0MSnb 6nPJUPlqgRExXhwapJnYj/NFYbtM87WWkd7U6stLHHX1Mu+B8pncvbw/Y1auRvhr3BT+ rNn5lXHFhPuYyjCklNVKeaQ/O5L6wiMjs/t8tgmI7af6I1U3CqWNvNBHpxUGXXBDPwIb XzLA== 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=CJm28tyVngeiywod7xQacORSeNl1Bv+FrKILoSvlRLc=; b=sn1oRET0rCSR5pogkrHk+2If6j9MPkHU+4ktz/hagXd51kv275LuZSVvYxWpS0Tw9T 3tzE8z4xckV7LFgRIxZJ6NNyC+aY1HUN9fXSHXi3i5aQjHj7LSw4rk7l9F3jn4t/yjkf OvHJKgj5jEZzMS9wBv8nhWJxa0SmOyCVIC4aVlZItsG5hXttIIG0B8ZKfT2aFpAMV5KE ix2TnQA5AAbHuL0d/GE9Kl9eLizI9B1Pk9nX2MW3qLRGsC8zPK+qlk9nOFwArKtZRzMG p1QGweUogvbxx/ZUq9S0o3jSCmJsXvrJqT80IA4n3vzgxmHHHIilGHUg7gnBhWPqEkTi 9oaQ== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q8-20020a631f48000000b003c6290e88e0si11629214pgm.422.2022.05.08.21.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:03:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 E1C933EBB1; Sun, 8 May 2022 21:01:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbiEHCiC (ORCPT + 99 others); Sat, 7 May 2022 22:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbiEHCiA (ORCPT ); Sat, 7 May 2022 22:38:00 -0400 Received: from smtpbg.qq.com (smtpbg139.qq.com [175.27.65.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9EE411144 for ; Sat, 7 May 2022 19:34:07 -0700 (PDT) X-QQ-mid: bizesmtp80t1651977243trr81gac Received: from localhost.localdomain ( [125.69.42.80]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 08 May 2022 10:34:02 +0800 (CST) X-QQ-SSF: 01000000002000E0S000B00A0000000 X-QQ-FEAT: a4niRxydalGnKaWQvlEkNpty5z+DUQ5beMSeF/B8CIO8DML5fxpJb59elfVlp KDhEN5AgpLeTNStES/32PxL4irmUJOtTkTjRnW6/F4JFZbikIYtvk0HGezXRtOfoC0s67lf fxMW7Cpc4y1+TJFbk3lmHNsivsIzyupeXpPzRcN8A4T/daaYJEoj1ljPZ+2wdoMfP7HQqv6 gcfxxHmn1NhUsiNF32kHED1s8Tx+yfOFaby3gCHJM30/9Hl0NNzgf891xs5npY9W/MV2TPF 5Q6tDTwdeAp9xEu7/j5Br+eUUlvr5SzAiY8xRtEYDElklngVnuYVEOHFMjI2FrCRCLUA18l s95GYW1NrYOv4H7Qrjliz8O4+8VQg== X-QQ-GoodBg: 0 From: Jason Wang To: zbr@ioremap.net Cc: linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] w1: no need to initialise statics to 0 Date: Sun, 8 May 2022 10:34:00 +0800 Message-Id: <20220508023400.102244-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:qybgspam6 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 --- drivers/w1/w1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index f2ae2e563dc5..bb28e36993d6 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -32,7 +32,7 @@ static int w1_timeout = 10; module_param_named(timeout, w1_timeout, int, 0); MODULE_PARM_DESC(timeout, "time in seconds between automatic slave searches"); -static int w1_timeout_us = 0; +static int w1_timeout_us; module_param_named(timeout_us, w1_timeout_us, int, 0); MODULE_PARM_DESC(timeout_us, "time in microseconds between automatic slave searches"); -- 2.35.1