Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1677572pxm; Sat, 26 Feb 2022 23:30:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUTrduBxBZC50c8x4XCcMXVI3m1QRA4rotW2pHN3k8Agt1UNyGZeFhf2N88Cb/du9+xZP8 X-Received: by 2002:a17:907:1113:b0:6ce:698a:bc7 with SMTP id qu19-20020a170907111300b006ce698a0bc7mr1634841ejb.709.1645947007218; Sat, 26 Feb 2022 23:30:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645947007; cv=none; d=google.com; s=arc-20160816; b=NpPFfuNf1nRnSD6uHaEyB3KwzXMqogteusR96CXYzFyMgkzHhx7vW4U7rHgVhmX8gb WwJjWsB45bAYzqaYpGeBMIY67vnqvbHu0SSK/HnIGg+vy5j7P0oMNqsunuEGrW2846GU ztmfHM+E1iHfqTurqLOJnGLYc7m+Dm9YsAjMkc48a8WPEwkhJDeY8NhY4f/wDXhO9FJn tNlrHAQ9l+fYlVv+WFnIiyI0mTUSKXcFHdpLSg4DE8cNDFQTVn/CnNgAIALm1ILZV/4/ tBqFJWEJksq/5WFOHhNkGtxyQSEuDsczQTChXQgPDNSSOZvj0h/KtC0dhq5Z+q5JAEio dSmQ== 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=7NACES08cUV48SD5HhRRYWMPonZEfVdmfErirS2ho8Q=; b=rqxJpH7RNZnFEOSf+ps/90+L39D4pSlCZcvNBxW+nldSGXQXUJARNz0pqbbogLVIaa aoUlvQYURKsz79VNLHZ1shwWvoDn5NoeKPxf3HTWIpRWT0P2eoCVk+SqchN3y0OlSvjK DHfL7EcdF1na9tVlIXYjSyagdZ5kEyFxwox6WuL9/3o/+eR62giC9VtBV+czT/7HwE/P fg8lVZlNy2i/SBBDcakOlxIlUGpCuYoBbmyHzjf9qpq+zmITO6De4bFLUlEH/bhTLd9B dXHJ22St78NH1wpXnmOQTazzBYMsDdrw0XEarYTaEzOMp2cIyensdwoBsIcp3gKz7cxx xsxQ== 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 q23-20020aa7cc17000000b00410a543031esi4614245edt.353.2022.02.26.23.29.35; Sat, 26 Feb 2022 23:30:07 -0800 (PST) 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 S230077AbiB0HNr (ORCPT + 99 others); Sun, 27 Feb 2022 02:13:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbiB0HNq (ORCPT ); Sun, 27 Feb 2022 02:13:46 -0500 Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E4CAFD0 for ; Sat, 26 Feb 2022 23:13:09 -0800 (PST) X-QQ-mid: bizesmtp70t1645945981tu3if8ky Received: from localhost.localdomain (unknown [58.240.82.166]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 27 Feb 2022 15:12:56 +0800 (CST) X-QQ-SSF: 01400000002000C0F000B00A0000000 X-QQ-FEAT: 3uawQE1sH+3cdVihck04CziGgFHh4ATJm3GZakzx+Xs4mrV+/TiNB0yQq6ycm hSVDp20Clsidmp1bFmYpqhACq8pFf+ntNDhYjkIeS6xZx5q/yjR6U98dkV/gCbl3LIArWw9 VcuiKiJbBvuprbJbgeR6qYN1P/cAx1UdPG26ITK+pyeGAMr3lObdHjzuxrzo36xX5H+M+E8 +hZp+o1K+nA33j7srjpUp9t10JRqkN6ELO2Gln6txoooE3+ua8RuWatI2Iby370HWQY75vn 6POAW+fALJWY5Dcj07CaWjOpkJH+p+YbY1+mnyWzniu1wqqNMM4/fGvCrPnyNbjJO+Z1IP0 0GLFndG1HrRfRve/565GMfQq3MhVWYkv5uNcsUe X-QQ-GoodBg: 2 From: Meng Tang To: perex@perex.cz, tiwai@suse.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Meng Tang Subject: [PATCH 1/2] ALSA: core: remove initialise static variables to 0 Date: Sun, 27 Feb 2022 15:12:52 +0800 Message-Id: <20220227071253.28193-1-tangmeng@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign5 X-QQ-Bgrelay: 1 X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,FROM_FMBLA_NEWDOM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,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 Initializing the static variable to 0 causes the following error when exec checkpatch: ERROR: do not initialise statics to 0 FILE: sound/sound_core.c:142: static int preclaim_oss = 0; Static variable does not need to be initialised to 0, because compiler will initialise all uninitialised statics to 0. Thus, remove the unneeded initializations. Signed-off-by: Meng Tang --- sound/sound_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/sound_core.c b/sound/sound_core.c index 90d118cd9164..2ee54070b2b5 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c @@ -139,7 +139,7 @@ struct sound_unit #ifdef CONFIG_SOUND_OSS_CORE_PRECLAIM static int preclaim_oss = 1; #else -static int preclaim_oss = 0; +static int preclaim_oss; #endif module_param(preclaim_oss, int, 0444); -- 2.20.1