From patchwork Sat Jan 31 15:00:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5754721 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 61EDABF440 for ; Sat, 31 Jan 2015 14:56:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F0D92026D for ; Sat, 31 Jan 2015 14:56:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A139320263 for ; Sat, 31 Jan 2015 14:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753454AbbAaO4x (ORCPT ); Sat, 31 Jan 2015 09:56:53 -0500 Received: from mail-wg0-f45.google.com ([74.125.82.45]:59811 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751950AbbAaO4w (ORCPT ); Sat, 31 Jan 2015 09:56:52 -0500 Received: by mail-wg0-f45.google.com with SMTP id x12so31538902wgg.4 for ; Sat, 31 Jan 2015 06:56:51 -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=JHucQ9v67S+/pK/lWyHiwfdMXl2wg7kM4LGeCaOXJ8s=; b=Oo5sE0egEJbh17gD7oVuQV9abc3g62/SDVbk+XIOCGtoCMM/HK89pUeQAeAJTlR98L FSE8DW4lIOImas3tbgnjlPedslyBKv+NtoRkOCzRnWxQPhu/lnOlgJP7orfx/GP6t24b AB8jdRn48+CjKQlvUaBEZbZl25zSwRWZx1GcihrJknXfxNjfNERJYxtehyJv/SOMwZpO qOlf2gHhsXNHSlqBltS0ke8cs2uE5tgZzRdcBDm365mgOghNcHDiqO38679K14DX6QYo +AIPMh5YvaDubXx1wjqcUPKQN5PPDZlT+88eTe5tMiVbQC+A0JjpGGTtuiVsaXEpOULc Iziw== X-Gm-Message-State: ALoCoQnJqp55SGVBeuvagfKNL6qnvtCCZR6szuvLxMSN7oy3AEs/P0KIgoLdKNPNSgGKDotZIW2t X-Received: by 10.181.29.201 with SMTP id jy9mr5380448wid.17.1422716211422; Sat, 31 Jan 2015 06:56:51 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id bb2sm19523157wjc.43.2015.01.31.06.56.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Jan 2015 06:56:50 -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_mlme_ext: Removed variables that is never used Date: Sat, 31 Jan 2015 16:00:12 +0100 Message-Id: <1422716412-3960-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_mlme_ext.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c index 0e0f73c..7c60fed 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c @@ -2515,7 +2515,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da, unsigned char *mac, *bssid; struct xmit_priv *pxmitpriv = &padapter->xmitpriv; #ifdef CONFIG_8723AU_AP_MODE - const u8 *pwps_ie; u8 *ssid_ie; int ssid_ielen; int ssid_ielen_diff; @@ -2576,7 +2575,7 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da, #ifdef CONFIG_8723AU_AP_MODE if ((pmlmeinfo->state & 0x03) == MSR_AP) { - pwps_ie = cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT, + cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT, WLAN_OUI_TYPE_MICROSOFT_WPS, cur_network->IEs, cur_network->IELength); @@ -6196,13 +6195,9 @@ int set_chplan_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf) int led_blink_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf) { - struct LedBlink_param *ledBlink_param; - if (!pbuf) return H2C_PARAMETERS_ERROR; - ledBlink_param = (struct LedBlink_param *)pbuf; - return H2C_SUCCESS; }