From patchwork Tue Jan 6 17:59:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5575891 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 367A7BF6C3 for ; Tue, 6 Jan 2015 17:56:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 583A8201EF for ; Tue, 6 Jan 2015 17:56:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB117200E3 for ; Tue, 6 Jan 2015 17:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756368AbbAFR4g (ORCPT ); Tue, 6 Jan 2015 12:56:36 -0500 Received: from mail-wi0-f175.google.com ([209.85.212.175]:49185 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756263AbbAFR4e (ORCPT ); Tue, 6 Jan 2015 12:56:34 -0500 Received: by mail-wi0-f175.google.com with SMTP id l15so5875321wiw.2 for ; Tue, 06 Jan 2015 09:56:33 -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=ixlbideWGzV00gMBL9TryPhcdv2zr8+CIa9hzx3Hz14M0uVf1m7YF1b7BPR7YJXmK4 RYUSUx1oU3YFcYBtlqEy0Cs86UHeJkRGxT3Lr/aJRWEKkwiZn6UW7HibJmW1zhS9phij fsyFOgqMjR5mf/Dd13PUBH7tw07ziiAF7paD1w8zH04JepDgo+xUCKMXcrAoL6NViTJW 2aWmZIwhyS7GRnZ1yLJuVxRh7Z97dKTZTfssA4LKQUOAl073q8iFhw4XDZjH/clkhmSg Pi1T84Ynk/c2It5Wc725cX+tf+mdILCBCUiCFSe/kkte62HNZrYzVk2LdbCpzOSuQ3mv NTaQ== X-Gm-Message-State: ALoCoQmONQmLo41EzHpz/doeVXAaW7FoQ1nmzW//XQXvkKEUdvqEMx6DrpnnIhNNUqf9FzNhWJWK X-Received: by 10.194.109.9 with SMTP id ho9mr75261490wjb.29.1420566993347; Tue, 06 Jan 2015 09:56:33 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id h13sm14824966wiw.4.2015.01.06.09.56.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Jan 2015 09:56:32 -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] b43legacy: Remove unused function Date: Tue, 6 Jan 2015 18:59:35 +0100 Message-Id: <1420567175-17323-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=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 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 Acked-by: Larry Finger Acked-by: Rafa? Mi?ecki --- 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_ */