From patchwork Mon Jan 19 18:24:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 5660321 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 EB99CC058E for ; Mon, 19 Jan 2015 18:25:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5997520108 for ; Mon, 19 Jan 2015 18:25:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 941032041C for ; Mon, 19 Jan 2015 18:25:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbbASSZF (ORCPT ); Mon, 19 Jan 2015 13:25:05 -0500 Received: from mail-we0-f179.google.com ([74.125.82.179]:48105 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752123AbbASSZD (ORCPT ); Mon, 19 Jan 2015 13:25:03 -0500 Received: by mail-we0-f179.google.com with SMTP id q59so9368130wes.10 for ; Mon, 19 Jan 2015 10:25:02 -0800 (PST) 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=nGp80zSLj+ktxK0gf7BUHTtWDi2IkrQeNHIvWY3H/bE=; b=wy8f1+0ZlPR37o0Diq6QW7Gy7+qUIM6qG7XOYvhku7XUIwzhWXZyV0TdXGqAp+TQbK krmUmtPJRauB83XyukX7cPosYYDipNtRWr7LlYUA7sTaAwvhgNnCbAGrKJRiKgaNTILW TMRUDTFyS7iJUCokReoc54A9micGyTsjErz/+6GaSWIVYJBQhp8X3UHrJRcQ6NgiOvsB pIGo4ULXyrLOJBIw2d+n7IhvknSlV1W2/PmAESO5TMjdOeA2Cc93CTAxt4qzm3DQtbkW 1CLbJBFSM4HExYbhhqGaA3PauDXxGMvLMKnOewuT0a0TXyEk8VcQuTZGa51aqxtQQmBe iuKA== X-Received: by 10.181.12.112 with SMTP id ep16mr38821239wid.38.1421691901973; Mon, 19 Jan 2015 10:25:01 -0800 (PST) Received: from tipsey.3.home ([92.40.107.9]) by mx.google.com with ESMTPSA id j1sm18224728wjw.25.2015.01.19.10.25.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Jan 2015 10:25:01 -0800 (PST) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 6/6] staging: vt6655: RFbSetPower remove unused variable byPwrdBm Date: Mon, 19 Jan 2015 18:24:15 +0000 Message-Id: <1421691855-2927-6-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1421691855-2927-1-git-send-email-tvboxspy@gmail.com> References: <1421691855-2927-1-git-send-email-tvboxspy@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 byPwrdBm is set but never used. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/rf.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c index a6eabde..941b2ad 100644 --- a/drivers/staging/vt6655/rf.c +++ b/drivers/staging/vt6655/rf.c @@ -775,7 +775,6 @@ bool RFbSetPower( bool bResult = true; unsigned char byPwr = 0; unsigned char byDec = 0; - unsigned char byPwrdBm = 0; if (priv->dwDiagRefCount != 0) return true; @@ -792,7 +791,6 @@ bool RFbSetPower( return false; byPwr = priv->abyCCKPwrTbl[uCH]; - byPwrdBm = priv->abyCCKDefaultPwr[uCH]; break; case RATE_6M: case RATE_9M: @@ -806,15 +804,6 @@ bool RFbSetPower( if (byDec >= priv->byMaxPwrLevel) byDec = priv->byMaxPwrLevel-1; - if (priv->byRFType == RF_UW2452) { - byPwrdBm = byDec - byPwr; - byPwrdBm /= 3; - } else { - byPwrdBm = byDec - byPwr; - byPwrdBm >>= 1; - } - - byPwrdBm += priv->abyOFDMDefaultPwr[uCH]; byPwr = byDec; break; case RATE_24M: @@ -822,7 +811,6 @@ bool RFbSetPower( case RATE_48M: case RATE_54M: byPwr = priv->abyOFDMPwrTbl[uCH]; - byPwrdBm = priv->abyOFDMDefaultPwr[uCH]; break; }