From patchwork Sat Mar 26 06:24:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 8674081 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 12338C0553 for ; Sat, 26 Mar 2016 06:25:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D3692026D for ; Sat, 26 Mar 2016 06:25:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B11A20251 for ; Sat, 26 Mar 2016 06:25:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752081AbcCZGZH (ORCPT ); Sat, 26 Mar 2016 02:25:07 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:35977 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750871AbcCZGZF (ORCPT ); Sat, 26 Mar 2016 02:25:05 -0400 Received: by mail-pa0-f65.google.com with SMTP id 1so8685987pal.3; Fri, 25 Mar 2016 23:25:04 -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=jPQwhyFoRD5NDcUzT8S/SfAewtvdaR3VDXee47pySkw=; b=zK8jLJ5O+SKZxEpR99VI8yImmraIcf2J3jv6fWT9XKyGH9JkmgjKcs5Uv194qlBRmE pdpZjQS6WmNlJUNND9DRiFsNN6fRssamtpyvAKiTK34Cggb8YnnHfdOHKqhahdnW0z8p /T90tz+UbRr158fCGuTupAvnpex2gH5qvYMg8iyVyp5NMAFudw5INxdm+B9I1E9OHD73 yz05IkWNLyv6t/LtBQDemF/Gz4rwJn1X/1dQ3f/OxXa10J9HbTBca5Twnke3xg957pJP m8Mnj6r4lVJC3Xr3fXKTbwok3paDXmopEJ02xQR9d6iCFHy6b18xW/6xe/t6FOmRks2a Hz6A== 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=jPQwhyFoRD5NDcUzT8S/SfAewtvdaR3VDXee47pySkw=; b=U1dWlgLp+EWyCUfG0c2lw7rPb3oDSw9LT1G9wq8ZtLSZ1NOJkgtnNwdQb/uZPY1bkb 1Jom4WWBKcd6LKDerfSgHT9DZjfyVF248uVRVz/yL7UTSN3jWBNGykMwxGBkN8nsTZgQ VixcsaXTHsc4Y0EYtt+pqsexs6bSxVQrAeY6Y9dop2DqnZCgIQA1yIF/V48cuuIQ56mI J7eLM22/dFEvCTEFDKHarkAgl5MVh7R7aH/8RPhnNCdPHL+NcB4PsK7SAeZ9sEfJ0G3b 8JL261fMxoL+pJIcMb6DPV/KZpxfl4fr3cqdtsoD33I0O9AzPdSwA2J0LhgvW9NCYaAA xgYA== X-Gm-Message-State: AD7BkJJfOuDFmzD1tvVH7MZN8BS8JcCe3/fZsfVhxg8kxUFkMkgz327Brhrh1bmypbOj2g== X-Received: by 10.66.180.111 with SMTP id dn15mr9614063pac.69.1458973504016; Fri, 25 Mar 2016 23:25:04 -0700 (PDT) Received: from bhumirks@gmail.com ([180.151.245.97]) by smtp.gmail.com with ESMTPSA id o7sm20362462pfa.37.2016.03.25.23.25.00 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Mar 2016 23:25:03 -0700 (PDT) Received: by bhumirks@gmail.com (sSMTP sendmail emulation); Sat, 26 Mar 2016 11:54:56 +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 function rtw_enqueue_{recvbuf23a/recvbuf23a_to_head} Date: Sat, 26 Mar 2016 11:54:55 +0530 Message-Id: <1458973495-17403-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_enqueue_recvbuf23a and rtw_enqueue_recvbuf23a_to_head 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_recv.c | 25 ------------------------- drivers/staging/rtl8723au/include/rtw_recv.h | 2 -- 2 files changed, 27 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_recv.c b/drivers/staging/rtl8723au/core/rtw_recv.c index 989ed07..150dabc 100644 --- a/drivers/staging/rtl8723au/core/rtw_recv.c +++ b/drivers/staging/rtl8723au/core/rtw_recv.c @@ -211,31 +211,6 @@ u32 rtw_free_uc_swdec_pending_queue23a(struct rtw_adapter *adapter) return cnt; } -int rtw_enqueue_recvbuf23a_to_head(struct recv_buf *precvbuf, struct rtw_queue *queue) -{ - spin_lock_bh(&queue->lock); - - list_del_init(&precvbuf->list); - list_add(&precvbuf->list, get_list_head(queue)); - - spin_unlock_bh(&queue->lock); - - return _SUCCESS; -} - -int rtw_enqueue_recvbuf23a(struct recv_buf *precvbuf, struct rtw_queue *queue) -{ - unsigned long irqL; - - spin_lock_irqsave(&queue->lock, irqL); - - list_del_init(&precvbuf->list); - - list_add_tail(&precvbuf->list, get_list_head(queue)); - spin_unlock_irqrestore(&queue->lock, irqL); - return _SUCCESS; -} - struct recv_buf *rtw_dequeue_recvbuf23a (struct rtw_queue *queue) { unsigned long irqL; diff --git a/drivers/staging/rtl8723au/include/rtw_recv.h b/drivers/staging/rtl8723au/include/rtw_recv.h index dc784be..85a5edb 100644 --- a/drivers/staging/rtl8723au/include/rtw_recv.h +++ b/drivers/staging/rtl8723au/include/rtw_recv.h @@ -279,8 +279,6 @@ int rtw_enqueue_recvframe23a(struct recv_frame *precvframe, struct rtw_queue *qu u32 rtw_free_uc_swdec_pending_queue23a(struct rtw_adapter *adapter); -int rtw_enqueue_recvbuf23a_to_head(struct recv_buf *precvbuf, struct rtw_queue *queue); -int rtw_enqueue_recvbuf23a(struct recv_buf *precvbuf, struct rtw_queue *queue); struct recv_buf *rtw_dequeue_recvbuf23a(struct rtw_queue *queue); void rtw_reordering_ctrl_timeout_handler23a(unsigned long pcontext);