From patchwork Wed Jul 22 18:16:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 6845781 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9382D9F358 for ; Wed, 22 Jul 2015 18:17:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C7BF220499 for ; Wed, 22 Jul 2015 18:17:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F2479204A7 for ; Wed, 22 Jul 2015 18:17:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752718AbbGVSRu (ORCPT ); Wed, 22 Jul 2015 14:17:50 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33358 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752279AbbGVSRq (ORCPT ); Wed, 22 Jul 2015 14:17:46 -0400 Received: by wicmv11 with SMTP id mv11so92401858wic.0 for ; Wed, 22 Jul 2015 11:17:45 -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:in-reply-to:references; bh=9GeJBzoM19Ql6YXTbTfD5VRLfiI/tens82rDzSKa46s=; b=hv+9NYhr7qQcxwXEGEQi0Y9nKf4mZXK9INY9SmefPsq39BZcAFl53EWwZ/P6UkmHUD R/+woDE1zj+aacrGJfLuPKyqXTi1SKi+epxR/Pn+UHlUAFmXhMuao128kI+YyfZtQirM VF8TxvkN3Hade652WxKGOwYKzudLa40nesWFh83xPGBCU5DUmNkntd7O0XYo9yYsD8R2 3KA1FqHG+8+6zXpFlUhBxPGirQiZQykSYz26vl0glQ0OYd0Of6BnIdiwOpc7pwz8KLOl MoWuuMSpbSLyvXsl6pwTf6AY9onrfGjWvxx5QYXhnbEIktnox0Dnx12MNVjeZ5lM7DEL jCaw== X-Received: by 10.180.91.134 with SMTP id ce6mr9075802wib.60.1437589065260; Wed, 22 Jul 2015 11:17:45 -0700 (PDT) Received: from tipsey.3.home (188.30.183.207.threembb.co.uk. [188.30.183.207]) by smtp.gmail.com with ESMTPSA id ha4sm23219334wib.0.2015.07.22.11.17.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Jul 2015 11:17:44 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 05/15] staging: vt6655: Remove unused tagDEVICE_TD_INFO curr_desc Date: Wed, 22 Jul 2015 19:16:37 +0100 Message-Id: <1437589007-5479-5-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1437589007-5479-1-git-send-email-tvboxspy@gmail.com> References: <1437589007-5479-1-git-send-email-tvboxspy@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-8.0 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=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 The variable is assigned a value that is never used. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/desc.h | 1 - drivers/staging/vt6655/device_main.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/staging/vt6655/desc.h b/drivers/staging/vt6655/desc.h index d568101..485c6fd 100644 --- a/drivers/staging/vt6655/desc.h +++ b/drivers/staging/vt6655/desc.h @@ -257,7 +257,6 @@ typedef struct tagDEVICE_TD_INFO { struct sk_buff *skb; unsigned char *buf; dma_addr_t buf_dma; - dma_addr_t curr_desc; unsigned long dwReqCount; unsigned long dwHeaderLength; unsigned char byFlags; diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 89611a7..7409ed2 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -711,7 +711,6 @@ static void device_init_td0_ring(struct vnt_private *pDevice) pDesc->pTDInfo->buf_dma = pDevice->tx_bufs_dma0 + (i)*PKT_BUF_SZ; } pDesc->next = &(pDevice->apTD0Rings[(i+1) % pDevice->sOpts.nTxDescs[0]]); - pDesc->pTDInfo->curr_desc = cpu_to_le32(curr); pDesc->next_desc = cpu_to_le32(curr+sizeof(STxDesc)); } @@ -737,7 +736,6 @@ static void device_init_td1_ring(struct vnt_private *pDevice) pDesc->pTDInfo->buf_dma = pDevice->tx_bufs_dma1 + (i) * PKT_BUF_SZ; } pDesc->next = &(pDevice->apTD1Rings[(i + 1) % pDevice->sOpts.nTxDescs[1]]); - pDesc->pTDInfo->curr_desc = cpu_to_le32(curr); pDesc->next_desc = cpu_to_le32(curr+sizeof(STxDesc)); }