From patchwork Thu Jan 1 15:46:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5556811 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 F15519F344 for ; Thu, 1 Jan 2015 15:43:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 266C5201EC for ; Thu, 1 Jan 2015 15:43:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5094D201D3 for ; Thu, 1 Jan 2015 15:43:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751523AbbAAPnL (ORCPT ); Thu, 1 Jan 2015 10:43:11 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:52209 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750925AbbAAPnL (ORCPT ); Thu, 1 Jan 2015 10:43:11 -0500 Received: by mail-wg0-f48.google.com with SMTP id y19so23294868wgg.35 for ; Thu, 01 Jan 2015 07:43:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G4D2fF1CHMLiPwndR4jkRAWIHkGWwEkrXvWqgwsw2xk=; b=BC7pvGqmumE5gAyXHBCfKxS67LqSc3fzR4gPaizo6AT3y/unjJmwfdORHjUb4LLDYx cK0ooXwlL//3l86Xm846qs0lywZPRMGtLAzEA5+/Sq9OHTbtUqf1uOMUIH64c0lbVF1g IVJa8dtheVb8ieo/9vigZA+3BJpSiR7Gw2aWeggMHm0h0Aw8G4Kgsg4gHbSIzX6JjgXs szEGwNTWzccO5/kI5+fwpqg5KAiY5puOdExY7yxIZUYfvBeWf0hSg6Vm+A1kY+L84qXa qJy0ee6CLz2pF/DDXyHqiF3VNnBVET0bg6+f0TDiQ9DJ3/unpXoUuZ3UgxFj68yVo+kB oy7Q== X-Gm-Message-State: ALoCoQlYSwdZwh9wOVv4ZwWa1bOSvf3f0okUtfsOC0TkCjFX1ZK5QpB3gDBdG2nOcZ0u1iHPzVvZ X-Received: by 10.180.109.46 with SMTP id hp14mr126525688wib.54.1420126989584; Thu, 01 Jan 2015 07:43:09 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id u13sm58700817wjr.26.2015.01.01.07.43.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 07:43:08 -0800 (PST) From: Rickard Strandqvist To: Larry Finger , Stefano Brivio Cc: Rickard Strandqvist , Kalle Valo , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: wireless: b43legacy: radio.c: Remove unused function Date: Thu, 1 Jan 2015 16:46:10 +0100 Message-Id: <1420127170-28421-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Remove the function b43legacy_radio_set_tx_iq() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/net/wireless/b43legacy/radio.c | 19 ------------------- drivers/net/wireless/b43legacy/radio.h | 1 - 2 files changed, 20 deletions(-) diff --git a/drivers/net/wireless/b43legacy/radio.c b/drivers/net/wireless/b43legacy/radio.c index 8961776..9501420 100644 --- a/drivers/net/wireless/b43legacy/radio.c +++ b/drivers/net/wireless/b43legacy/radio.c @@ -1743,25 +1743,6 @@ u16 freq_r3A_value(u16 frequency) return value; } -void b43legacy_radio_set_tx_iq(struct b43legacy_wldev *dev) -{ - static const u8 data_high[5] = { 0x00, 0x40, 0x80, 0x90, 0xD0 }; - static const u8 data_low[5] = { 0x00, 0x01, 0x05, 0x06, 0x0A }; - u16 tmp = b43legacy_radio_read16(dev, 0x001E); - int i; - int j; - - for (i = 0; i < 5; i++) { - for (j = 0; j < 5; j++) { - if (tmp == (data_high[i] | data_low[j])) { - b43legacy_phy_write(dev, 0x0069, (i - j) << 8 | - 0x00C0); - return; - } - } - } -} - int b43legacy_radio_selectchannel(struct b43legacy_wldev *dev, u8 channel, int synthetic_pu_workaround) diff --git a/drivers/net/wireless/b43legacy/radio.h b/drivers/net/wireless/b43legacy/radio.h index bccb3d7..dd2976d 100644 --- a/drivers/net/wireless/b43legacy/radio.h +++ b/drivers/net/wireless/b43legacy/radio.h @@ -92,7 +92,6 @@ void b43legacy_nrssi_hw_write(struct b43legacy_wldev *dev, u16 offset, s16 val); void b43legacy_nrssi_hw_update(struct b43legacy_wldev *dev, u16 val); void b43legacy_nrssi_mem_update(struct b43legacy_wldev *dev); -void b43legacy_radio_set_tx_iq(struct b43legacy_wldev *dev); u16 b43legacy_radio_calibrationvalue(struct b43legacy_wldev *dev); #endif /* B43legacy_RADIO_H_ */