From patchwork Thu Mar 3 18:47:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivo van Doorn X-Patchwork-Id: 607061 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p23InPj8021584 for ; Thu, 3 Mar 2011 18:49:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932295Ab1CCStX (ORCPT ); Thu, 3 Mar 2011 13:49:23 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:45862 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932266Ab1CCStW (ORCPT ); Thu, 3 Mar 2011 13:49:22 -0500 Received: by mail-ww0-f44.google.com with SMTP id 22so1738699wwb.1 for ; Thu, 03 Mar 2011 10:49:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=/Ewv0vfq5EYEr+5mrKnjgFXIFVY51YkipJXCH8k7XgY=; b=uRmLmX7d21R1BaWN7kZoevq5sjTVM36qJR05O1TECwqxxFyZk1XOddWbBSyJ4aj2ut ylEbrbAYl1RuxoS4aTaigVUoD5dfwwiu01xAjJMDDBwWdqgCRcivWq4CfjNRxv2KSOA+ qPMxlwx9dSUW6YHACbsB6xB6VPc2S7IBExqCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=Oy8TPU92IFQNbsLde2Glm7V99vB5d5QrOGfdvo3lDTQKq0qZTT8v0zgWOB3BFO4zlJ Bdh8cMdHckEQ7c1PIcPSa70vCMRh2IumTfgF5webXbJ7rcAZCJYxdlote8jJIgNvsBlX hsCpcdwAeUJIaOmPBQcsgwrI97VkDJBWGq4W0= Received: by 10.216.7.8 with SMTP id 8mr1042050weo.30.1299178162181; Thu, 03 Mar 2011 10:49:22 -0800 (PST) Received: from localhost.localdomain (g121037.upc-g.chello.nl [80.57.121.37]) by mx.google.com with ESMTPS id j49sm738659wer.14.2011.03.03.10.49.18 (version=SSLv3 cipher=OTHER); Thu, 03 Mar 2011 10:49:19 -0800 (PST) From: Ivo van Doorn To: "John W. Linville" Subject: [PATCH 19/19] rt2x00: Remove unused rt2x00queue_get_queue function. Date: Thu, 3 Mar 2011 19:47:21 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.x86_64; KDE/4.4.5; x86_64; ; ) Cc: linux-wireless@vger.kernel.org, users@rt2x00.serialmonkey.com References: <201103031938.56423.IvDoorn@gmail.com> <201103031946.30487.IvDoorn@gmail.com> <201103031946.56905.IvDoorn@gmail.com> In-Reply-To: <201103031946.56905.IvDoorn@gmail.com> MIME-Version: 1.0 Message-Id: <201103031947.21936.IvDoorn@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 03 Mar 2011 18:49:25 +0000 (UTC) diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 72f8ebf..5217caf 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h @@ -1083,14 +1083,6 @@ rt2x00queue_get_tx_queue(struct rt2x00_dev *rt2x00dev, } /** - * rt2x00queue_get_queue - Convert queue index to queue pointer - * @rt2x00dev: Pointer to &struct rt2x00_dev. - * @queue: rt2x00 queue index (see &enum data_queue_qid). - */ -struct data_queue *rt2x00queue_get_queue(struct rt2x00_dev *rt2x00dev, - const enum data_queue_qid queue); - -/** * rt2x00queue_get_entry - Get queue entry where the given index points to. * @queue: Pointer to &struct data_queue from where we obtain the entry. * @index: Index identifier for obtaining the correct index. diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index fcaacc6..4b3c70e 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c @@ -705,25 +705,6 @@ void rt2x00queue_for_each_entry(struct data_queue *queue, } EXPORT_SYMBOL_GPL(rt2x00queue_for_each_entry); -struct data_queue *rt2x00queue_get_queue(struct rt2x00_dev *rt2x00dev, - const enum data_queue_qid queue) -{ - if (queue == QID_RX) - return rt2x00dev->rx; - - if (queue < rt2x00dev->ops->tx_queues && rt2x00dev->tx) - return &rt2x00dev->tx[queue]; - - if (queue == QID_BEACON) - return rt2x00dev->bcn; - - if (queue == QID_ATIM) - return rt2x00dev->atim; - - return NULL; -} -EXPORT_SYMBOL_GPL(rt2x00queue_get_queue); - struct queue_entry *rt2x00queue_get_entry(struct data_queue *queue, enum queue_index index) {