From patchwork Tue May 17 04:46:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Halperin X-Patchwork-Id: 790372 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 p4H4kaao031821 for ; Tue, 17 May 2011 04:46:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751221Ab1EQEqd (ORCPT ); Tue, 17 May 2011 00:46:33 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:57961 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751007Ab1EQEqc convert rfc822-to-8bit (ORCPT ); Tue, 17 May 2011 00:46:32 -0400 Received: by pvg12 with SMTP id 12so70068pvg.19 for ; Mon, 16 May 2011 21:46:32 -0700 (PDT) Received: by 10.143.24.31 with SMTP id b31mr143936wfj.244.1305607592326; Mon, 16 May 2011 21:46:32 -0700 (PDT) Received: from [10.0.1.5] (c-24-19-11-81.hsd1.wa.comcast.net [24.19.11.81]) by mx.google.com with ESMTPS id k6sm169683wfa.5.2011.05.16.21.46.30 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 May 2011 21:46:31 -0700 (PDT) From: Daniel Halperin Subject: [PATCH] iwlwifi: remove unused parameter from iwl_hcmd_queue_reclaim Date: Mon, 16 May 2011 21:46:28 -0700 Message-Id: <9506853D-331A-4900-BAA3-61C3CB280AAD@cs.washington.edu> To: linux-wireless Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) 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]); Tue, 17 May 2011 04:46:37 +0000 (UTC) cmd_index is never used. Signed-off-by: Daniel Halperin --- drivers/net/wireless/iwlwifi/iwl-tx.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 54a935f..686e176 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c @@ -746,8 +746,7 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) * need to be reclaimed. As result, some free space forms. If there is * enough free space (> low mark), wake the stack that feeds us. */ -static void iwl_hcmd_queue_reclaim(struct iwl_priv *priv, int txq_id, - int idx, int cmd_idx) +static void iwl_hcmd_queue_reclaim(struct iwl_priv *priv, int txq_id, int idx) { struct iwl_tx_queue *txq = &priv->txq[txq_id]; struct iwl_queue *q = &txq->q; @@ -819,7 +818,7 @@ void iwl_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) spin_lock_irqsave(&priv->hcmd_lock, flags); - iwl_hcmd_queue_reclaim(priv, txq_id, index, cmd_index); + iwl_hcmd_queue_reclaim(priv, txq_id, index); if (!(meta->flags & CMD_ASYNC)) { clear_bit(STATUS_HCMD_ACTIVE, &priv->status);