Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1139534pxb; Tue, 17 Aug 2021 04:55:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys8xP77l8CEgTq7kuIwc5SY4aFQ3fYYXjlA09ZhmzqUFpolIivzgoLSWXOG1t1dGpbwWn9 X-Received: by 2002:a6b:7710:: with SMTP id n16mr2197075iom.101.1629201341205; Tue, 17 Aug 2021 04:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629201341; cv=none; d=google.com; s=arc-20160816; b=gFDFMc5aPfu0izvbr3c3o9Czp2p88KECBtOPAYxkIxd9SdA/1VlrqZbbOnE7Ampdml D4YL/G5fG6QTotBsAajQqazwkdpzsdQEIDkU6pfFxtv+oxHayZe5IQzbMCP9Z/5TPaIf 3osiLSYr3OeKxbK8fh7dMCYzE2aBbrrT26CjlQgW7rPcU59CY2ntV6tbCT8pFNuURI2G Ip9PPy7HhOKNr5hYoevKlyJosWaFHJoJ3CBp3Hf01YtPssmygzq1iq5PGAempRlk5nVd pscmFJDzeMb/KgdTDV7Ulkm0jAt6Ch65MPYD6gbV54ahljw2L4VsCNp2gWUUUnlUAqL0 Gmug== 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=ClvX0esLblXv3AeDCqjJMC8K3hIpeJ5vbYetrO1EItY=; b=YH13dffHOUlbTypZ47aS0x/S2Cl+tR2VvFc7R8HCwq8cL7wLrRtPqRGLPXQA1h8Orv peu88wUlfcjuvPYp0UhlD5/XHLLilJ/kAfQNbYBUSNkWaF4Ch+MrY1ABwvWSVuwsLgW8 QN2/qoA8LCcfiFG2NjlUmbeOjg189XBfJmVw2StKCNrlJwPqB62ZxG/E7ao+yMeMaIQF uhUry0/FFReBQ7lbomTEdrpZPhBB5SGGpGKpSEvrL3oQM/RnbLQ/ADECXfv3yJEpI+1W 5T77yhMWlWC+hLeiaZs1ZJTb/dG/lGfE2jCqmNlxpHNqEGZfA240iJ7ixXgZVOzzjXOB 2Zhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 j15si2433850ile.95.2021.08.17.04.55.30; Tue, 17 Aug 2021 04:55:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239842AbhHQLzm (ORCPT + 99 others); Tue, 17 Aug 2021 07:55:42 -0400 Received: from smtpbg126.qq.com ([106.55.201.22]:32794 "EHLO smtpbg587.qq.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239829AbhHQLzl (ORCPT ); Tue, 17 Aug 2021 07:55:41 -0400 X-QQ-mid: bizesmtp40t1629201286t3laxpke Received: from localhost.localdomain (unknown [125.69.42.50]) by esmtp6.qq.com (ESMTP) with id ; Tue, 17 Aug 2021 19:54:45 +0800 (CST) X-QQ-SSF: 01000000004000B0C000B00A0000000 X-QQ-FEAT: +fe027EjEe5RZpPMlp4GprPwn6YSKJr5uthjgoWzpBs8nbxTaGok0VJd5XDBP 17HtfNorSXskbLhJFrXSavGnZBbpUgePGuJzA6V5ooyBKoSnawrMC9XoviOG3el86G3/BnG ErUz4QuSjV2bar3TxiYWZBeD6dlruwnTQo+gmzwZiboXzzfnOqs7Al7JZB/fVWZGf2YIIxJ pbXyp9DCt2ytVWbh7u9UI871aLX3EQPbfZX6tZzMEyE7Cjb5isud2w8HZhBE1n2VpK3XaUA 5Uny8aPT/FiSNlA/LGPp4R3kj0S8q4nmJNla4UmdLDJolUoNTSEZ3B3HYWcA1qRSxv3UAAO kx4SN2sap3HVC/AIMVGXZmthXVeVw== X-QQ-GoodBg: 0 From: Jason Wang To: kvalo@codeaurora.org Cc: stas.yakovlev@gmail.com, davem@davemloft.net, kuba@kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] ipw2x00: no need to initilise statics to 0 Date: Tue, 17 Aug 2021 19:54:38 +0800 Message-Id: <20210817115438.33449-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam2 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Global static variables dont need to be initialised to 0. Because the compiler will initilise them. Signed-off-by: Jason Wang --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c index 47eb89b773cf..6bfe55d79ce1 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -173,11 +173,11 @@ MODULE_VERSION(DRV_VERSION); MODULE_AUTHOR(DRV_COPYRIGHT); MODULE_LICENSE("GPL"); -static int debug = 0; -static int network_mode = 0; -static int channel = 0; -static int associate = 0; -static int disable = 0; +static int debug; +static int network_mode; +static int channel; +static int associate; +static int disable; #ifdef CONFIG_PM static struct ipw2100_fw ipw2100_firmware; #endif @@ -7197,7 +7197,7 @@ static int ipw2100_wx_set_txpow(struct net_device *dev, { struct ipw2100_priv *priv = libipw_priv(dev); int err = 0, value; - + if (ipw_radio_kill_sw(priv, wrqu->txpower.disabled)) return -EINPROGRESS; -- 2.32.0