From patchwork Sat Mar 26 06:14:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 8674071 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 A6934C0553 for ; Sat, 26 Mar 2016 06:15:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B239E20251 for ; Sat, 26 Mar 2016 06:15:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CFE3A2024F for ; Sat, 26 Mar 2016 06:15:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752438AbcCZGPH (ORCPT ); Sat, 26 Mar 2016 02:15:07 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35398 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750871AbcCZGPE (ORCPT ); Sat, 26 Mar 2016 02:15:04 -0400 Received: by mail-pf0-f193.google.com with SMTP id u190so13703742pfb.2; Fri, 25 Mar 2016 23:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=i2HWg0SEzvSD4ATtW3viR24v8ukE/BXJe+SXJK7a2Xw=; b=PG9mzyF/Q8B/lis6qlAHDi/xt/qnfgFY1246PlkPQr0ou6ggkZj8eZlPcYREvJMnhX Tz9u4nsEvUJyG0QnMIGVN5wz5M0o8dLYFa+Jls+0ivMFZoJVDF7IUAcQbV5sulK+ZnCH kC+0G8Z5eyJcy1lKE6g48oeiU8x0bazskq7UTB5E/NQOtOpc+xnc6ISFcakmrQq6Vaid 3tIhkvOvHzMCkPZSVt6r1yFBKEQgzqgMC7ebjqu1A+jDeWJp3R2xzn34q0F0sRiigM/F z8liyMnTXirYpgnHTNJgHJGW8TDooer8JnRpWXN4d8F+NOMys8zL+x+U16vakYWtvDJx 1lOw== 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=i2HWg0SEzvSD4ATtW3viR24v8ukE/BXJe+SXJK7a2Xw=; b=Oz/b6aa616skP/KKAbpbrpjTMNghzJPmtVR+wP0L1wwjolOSVL3vWzXWMQ6CVk4YmJ yZlpG+aRDdTPh7a1ghI0/JHacFhTlREkfGLP7ozjZxTemGkWHUZDyc28Aapfa5vXpOoe WrBY0dDnCYC4vF5iIzVX/H9sa7EAU2CuIQ1FF0lVdg2bvKEE8AmvP1/GAQbDehoOFHGx 31kMM3LzxsWZbmnlJsPhRmde+D/aO7YmNexXz13farYL4vu1U+3xdSjWRubyOKZ9wg2e Juh2N6x5A+iOxA9rOLaZh9pEaNkzhL8YZbekVuFpO+HqdwF/RigOQ1EQkg7d9ibBSCUW tL0A== X-Gm-Message-State: AD7BkJIJTx72e8jGKgoVNnKr27VACEmUX41jI+8bL9QY0+us69ZbWr77GYUxxfCwx45/ow== X-Received: by 10.98.75.28 with SMTP id y28mr26291422pfa.126.1458972903218; Fri, 25 Mar 2016 23:15:03 -0700 (PDT) Received: from bhumirks@gmail.com ([180.151.245.97]) by smtp.gmail.com with ESMTPSA id t87sm20291541pfa.54.2016.03.25.23.14.59 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Mar 2016 23:15:02 -0700 (PDT) Received: by bhumirks@gmail.com (sSMTP sendmail emulation); Sat, 26 Mar 2016 11:44:54 +0530 From: Bhumika Goyal To: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org Cc: Jes.Sorensen@redhat.com, joe@perches.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Bhumika Goyal Subject: [PATCH] Staging: rtl8723au: Remove unused functions Date: Sat, 26 Mar 2016 11:44:52 +0530 Message-Id: <1458972892-14169-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 The functions rtw_get_oper_bw23a and rtw_get_oper_ch23aoffset are never used anywhere in the kernel. So, remove their definition and prototype. Grepped to find occurences. Signed-off-by: Bhumika Goyal Reviewed-by: Julian Calaby Acked-by: Jes Sorensen --- drivers/staging/rtl8723au/core/rtw_wlan_util.c | 10 ---------- drivers/staging/rtl8723au/include/rtw_mlme_ext.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c index cc2b84b..694cf17 100644 --- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c @@ -304,21 +304,11 @@ inline void rtw_set_oper_ch23a(struct rtw_adapter *adapter, u8 ch) adapter_to_dvobj(adapter)->oper_channel = ch; } -inline u8 rtw_get_oper_bw23a(struct rtw_adapter *adapter) -{ - return adapter_to_dvobj(adapter)->oper_bwmode; -} - inline void rtw_set_oper_bw23a(struct rtw_adapter *adapter, u8 bw) { adapter_to_dvobj(adapter)->oper_bwmode = bw; } -inline u8 rtw_get_oper_ch23aoffset(struct rtw_adapter *adapter) -{ - return adapter_to_dvobj(adapter)->oper_ch_offset; -} - inline void rtw_set_oper_ch23aoffset23a(struct rtw_adapter *adapter, u8 offset) { adapter_to_dvobj(adapter)->oper_ch_offset = offset; diff --git a/drivers/staging/rtl8723au/include/rtw_mlme_ext.h b/drivers/staging/rtl8723au/include/rtw_mlme_ext.h index ea2a6c9..0e7d3da 100644 --- a/drivers/staging/rtl8723au/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8723au/include/rtw_mlme_ext.h @@ -461,9 +461,7 @@ void Update23aTblForSoftAP(u8 *bssrateset, u32 bssratelen); u8 rtw_get_oper_ch23a(struct rtw_adapter *adapter); void rtw_set_oper_ch23a(struct rtw_adapter *adapter, u8 ch); -u8 rtw_get_oper_bw23a(struct rtw_adapter *adapter); void rtw_set_oper_bw23a(struct rtw_adapter *adapter, u8 bw); -u8 rtw_get_oper_ch23aoffset(struct rtw_adapter *adapter); void rtw_set_oper_ch23aoffset23a(struct rtw_adapter *adapter, u8 offset); void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel,