From patchwork Sat Oct 17 23:01:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Mcquade X-Patchwork-Id: 7423711 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3084A9F36A for ; Sat, 17 Oct 2015 23:02:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 598AC2073F for ; Sat, 17 Oct 2015 23:02:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 57AF220752 for ; Sat, 17 Oct 2015 23:02:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752063AbbJQXCZ (ORCPT ); Sat, 17 Oct 2015 19:02:25 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:36032 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751839AbbJQXCB (ORCPT ); Sat, 17 Oct 2015 19:02:01 -0400 Received: by wicfx6 with SMTP id fx6so5417819wic.1; Sat, 17 Oct 2015 16:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Eab1IHVCKlkhqYz6K+er7I58/U/o0jUANoErHd+P8+A=; b=F15bgRTw9/fp+4EG5EwtRAZSRGoPmaH/fgV19/oJMKUXZ4otdDOC/GJWSuBBE9F4l+ 1ZxWSxGYPHNzGhJchSSZfgpVRA7qS96DDn9dlGD3El6UOu4W/2UIbPkM74aA+c/sMWod qP87hjxLVebS7CwEFKJbTXjEjr/iFHJqCs0sHtJybvZc5bSV5Zxp9nTRgFflH7mNkgX6 NZF9VycMGZuCKPrHHmAi6EL2xwU1A0j3CQQ5o5oBo0Sl9qFz/Xlm2QeFQj0D2+yyJqhn J7mhyreYRc+88wPmVGGqkbnNU1t3/ncPb5QocaXrR11XOAjsz9RmgNnUDEljgIw8ptAU tYow== X-Received: by 10.194.118.234 with SMTP id kp10mr4998393wjb.59.1445122919639; Sat, 17 Oct 2015 16:01:59 -0700 (PDT) Received: from localhost.localdomain ([78.17.77.116]) by smtp.gmail.com with ESMTPSA id wx10sm30737666wjb.40.2015.10.17.16.01.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Oct 2015 16:01:58 -0700 (PDT) From: Paul McQuade To: paulmcquad@gmail.com Cc: kvalo@codeaurora.org, zajec5@gmail.com, johannes.berg@intel.com, davem@davemloft.net, joe@perches.com, m@bues.ch, mike.looijmans@topic.nl, cengelma@gmx.at, khoroshilov@ispras.ru, linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] net: wireless: b43: statics Don't init to 0 Date: Sun, 18 Oct 2015 00:01:38 +0100 Message-Id: <1445122898-5810-3-git-send-email-paulmcquad@gmail.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1445122898-5810-1-git-send-email-paulmcquad@gmail.com> References: <1445122898-5810-1-git-send-email-paulmcquad@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Don't turn statics to 0 or NULL Signed-off-by: Paul McQuade --- drivers/net/wireless/b43/main.c | 2 +- drivers/net/wireless/b43/phy_lp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 040caa4..2b50650 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c @@ -109,7 +109,7 @@ int b43_modparam_verbose = B43_VERBOSITY_DEFAULT; module_param_named(verbose, b43_modparam_verbose, int, 0644); MODULE_PARM_DESC(verbose, "Log message verbosity: 0=error, 1=warn, 2=info(default), 3=debug"); -static int b43_modparam_pio = 0; +static int b43_modparam_pio; module_param_named(pio, b43_modparam_pio, int, 0644); MODULE_PARM_DESC(pio, "Use PIO accesses by default: 0=DMA, 1=PIO"); diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c index 058a9f2..086f0ba 100644 --- a/drivers/net/wireless/b43/phy_lp.c +++ b/drivers/net/wireless/b43/phy_lp.c @@ -2502,7 +2502,7 @@ static int lpphy_b2063_tune(struct b43_wldev *dev, { struct ssb_bus *bus = dev->dev->sdev->bus; - static const struct b206x_channel *chandata = NULL; + static const struct b206x_channel *chandata; u32 crystal_freq = bus->chipco.pmu.crystalfreq * 1000; u32 freqref, vco_freq, val1, val2, val3, timeout, timeoutref, count; u16 old_comm15, scale;