From patchwork Sat Jan 31 15:04:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5754791 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 0C47D9F336 for ; Sat, 31 Jan 2015 15:01:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 488992026D for ; Sat, 31 Jan 2015 15:01:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6D7F320263 for ; Sat, 31 Jan 2015 15:01:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754630AbbAaPBk (ORCPT ); Sat, 31 Jan 2015 10:01:40 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]:46692 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752174AbbAaPBj (ORCPT ); Sat, 31 Jan 2015 10:01:39 -0500 Received: by mail-we0-f172.google.com with SMTP id q59so31791728wes.3 for ; Sat, 31 Jan 2015 07:01:38 -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=WFpkN/A9/yr9m4uyaAMpRUqpWwu67iqmNsniitRGo68=; b=ULxcoSAPCDz+H0ssK/jzCgDeaGW/7XMVoNpR5TF4BmtfSZZtW5oZON3ERXk8rtc90s tF6JxV+yPEFFOw7lHDeTWJM6iC62vSjn+6UEEKMm70FexNe+UKPAOe63PtoXIfiBa8EI YqQ65YSGaKEUHD2CXp7c+RspzpObofvP1AeHptf6ZpaeiL0YLi8g0Qprj0hNywJuNArl mslHjdHeX8aF1spiUFIb9JOVkf92uOVU1WH58OnCq26GvgV5KHw4D3l/BaovcTS0n6Xo Y1lheHqWOC8nSZeLB1c8Y8BfenchbQ/LXd4GbbARsliGN+4v9P16HrhIsr2n783n9Ux1 jUWg== X-Gm-Message-State: ALoCoQkXcnZmIRlrDALftQN7Ju5hLMMcwuwLsLLeRT+2DQKOIgntLcHbUEaWkfaDEQn7k6902jX/ X-Received: by 10.180.198.148 with SMTP id jc20mr202635wic.67.1422716498132; Sat, 31 Jan 2015 07:01:38 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id z6sm11534328wix.20.2015.01.31.07.01.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Jan 2015 07:01:37 -0800 (PST) From: Rickard Strandqvist To: Larry Finger , Jes Sorensen Cc: Rickard Strandqvist , Greg Kroah-Hartman , Raphael Silva , Sachin Kamat , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723au: core: rtw_sta_mgt: Removed variables that is never used Date: Sat, 31 Jan 2015 16:04:59 +0100 Message-Id: <1422716699-4774-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_sta_mgt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_sta_mgt.c b/drivers/staging/rtl8723au/core/rtw_sta_mgt.c index d17998d..7a9feb6 100644 --- a/drivers/staging/rtl8723au/core/rtw_sta_mgt.c +++ b/drivers/staging/rtl8723au/core/rtw_sta_mgt.c @@ -390,7 +390,6 @@ int rtw_init_bcmc_stainfo23a(struct rtw_adapter *padapter) { struct sta_priv *pstapriv = &padapter->stapriv; struct sta_info *psta; - struct tx_servq *ptxservq; int res = _SUCCESS; psta = rtw_alloc_stainfo23a(pstapriv, bc_addr, GFP_KERNEL); @@ -403,7 +402,6 @@ int rtw_init_bcmc_stainfo23a(struct rtw_adapter *padapter) /* default broadcast & multicast use macid 1 */ psta->mac_id = 1; - ptxservq = &psta->sta_xmitpriv.be_q; return _SUCCESS; }