From patchwork Sat Jan 31 15:06: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: 5754811 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 815C39F336 for ; Sat, 31 Jan 2015 15:03:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F0E3A2026D for ; Sat, 31 Jan 2015 15:03:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36CE920263 for ; Sat, 31 Jan 2015 15:03:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754141AbbAaPDQ (ORCPT ); Sat, 31 Jan 2015 10:03:16 -0500 Received: from mail-we0-f181.google.com ([74.125.82.181]:39181 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752428AbbAaPDQ (ORCPT ); Sat, 31 Jan 2015 10:03:16 -0500 Received: by mail-we0-f181.google.com with SMTP id k48so31872987wev.12 for ; Sat, 31 Jan 2015 07:03:14 -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=HeAQpwNqadOVMYgayhSmuYW29J0XLDFstkqP6PPLZ2E=; b=SwwQ8zbYW8UFGzp5SSMbShfJGI/vyu/Ke1uQv00uzWmnX0A3dJSn/SX6Sjl+LDWOTa uySwNEweflukW/zz2ks8vaBhZ199Zu1EeFrZDaLHBikNAHcVlGJWvHHu0EFnkfw/2UkZ w1Jn7ag1iWq3NY58EACvsuGMb86eCFl7W+F1CR6EikmAz7LmlzmbqF8XRBPeWzg4FPBh QjHpS2SAM0jUd78ciim5pGPr8BQWoWYuC5cbb9tHFt5Ni9YJtrahLD8uXWkZA8SiHtbo dGbNYMJYVf56FMUQ0hhv++4ElT9a16+SgS6+Cyq90TN2MwEuf41Ebbjxnkk91F7BidmB h4Mw== X-Gm-Message-State: ALoCoQliDlVLnWNyXJ0GRrsBK2/C3nQSxKEAPC7F5dpO9VLHn45Dao6QEAclVIEXMnHmWJqoeK38 X-Received: by 10.180.182.67 with SMTP id ec3mr5561233wic.58.1422716594456; Sat, 31 Jan 2015 07:03:14 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id vq9sm19546230wjc.6.2015.01.31.07.03.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Jan 2015 07:03:13 -0800 (PST) From: Rickard Strandqvist To: Larry Finger , Jes Sorensen Cc: Rickard Strandqvist , Greg Kroah-Hartman , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723au: core: rtw_wlan_util: Removed variables that is never used Date: Sat, 31 Jan 2015 16:06:35 +0100 Message-Id: <1422716796-5008-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 Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/rtl8723au/core/rtw_wlan_util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c index 69d9e0f..ee2d024 100644 --- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c @@ -1531,7 +1531,7 @@ void process_addba_req23a(struct rtw_adapter *padapter, u8 *paddba_req, u8 *addr) { struct sta_info *psta; - u16 tid, start_seq, param; + u16 tid, param; struct recv_reorder_ctrl *preorder_ctrl; struct sta_priv *pstapriv = &padapter->stapriv; struct ADDBA_request *preq = (struct ADDBA_request *)paddba_req; @@ -1541,8 +1541,6 @@ void process_addba_req23a(struct rtw_adapter *padapter, psta = rtw_get_stainfo23a(pstapriv, addr); if (psta) { - start_seq = le16_to_cpu(preq->BA_starting_seqctrl) >> 4; - param = le16_to_cpu(preq->BA_para_set); tid = (param >> 2) & 0x0f;