From patchwork Fri Aug 14 21:58:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 7019641 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 6A972C05AC for ; Fri, 14 Aug 2015 21:59:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 88F40206EB for ; Fri, 14 Aug 2015 21:59:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A924D206E9 for ; Fri, 14 Aug 2015 21:59:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753501AbbHNV7W (ORCPT ); Fri, 14 Aug 2015 17:59:22 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:37871 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752679AbbHNV7V (ORCPT ); Fri, 14 Aug 2015 17:59:21 -0400 Received: by wibhh20 with SMTP id hh20so33920984wib.0 for ; Fri, 14 Aug 2015 14:59:20 -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=ZmjGUTGh2t7nMAC1OLjBRUqeLkSNIS+1Pes6ERUVGPk=; b=FmjfuQiONGLRqDM4dS6dQBLiGkfEiyG79wEULdjLo6YDpsoYah7yE+DmhEkmPODqwX Gqkq6FeQE123aceIFwD4ZeVfVug1lsLrWbjuY8k1gAxbA3MajM0VKTmnWCJ/G8pdTbjx 1hk3gVwX2NRE9oCoEcNJH8QEiIrHIAhBDAAp+Qkxmkv3T0cZdinkxImIKJAW3J8H5RTP 8i0SOjpqLg4OHoORPGubtouTyZWYmr9G36kkGH/Iqcyh0fWu1lNHvHerUDa1IK2J3Gtv QXn4nKH8EWdJvQiDb3BL61awdG9KhCsemIdEaQbUS9LAciNEx2XvNWVIeaipyfkQAEZL cgYQ== X-Received: by 10.180.182.112 with SMTP id ed16mr10535040wic.19.1439589560140; Fri, 14 Aug 2015 14:59:20 -0700 (PDT) Received: from tipsey.3.home (188.31.106.31.threembb.co.uk. [188.31.106.31]) by smtp.gmail.com with ESMTPSA id s7sm4947902wix.23.2015.08.14.14.59.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Aug 2015 14:59:19 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 4/6] staging: vt6655: struct tagDEVICE_TD_INFO remove dwHeaderLength Date: Fri, 14 Aug 2015 22:58:49 +0100 Message-Id: <1439589531-3059-4-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1439589531-3059-1-git-send-email-tvboxspy@gmail.com> References: <1439589531-3059-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=-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=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 dwHeaderLength is assigned a value but that is never used. Remove variable. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/desc.h | 1 - drivers/staging/vt6655/rxtx.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/vt6655/desc.h b/drivers/staging/vt6655/desc.h index ab52c56..0b786cf 100644 --- a/drivers/staging/vt6655/desc.h +++ b/drivers/staging/vt6655/desc.h @@ -246,7 +246,6 @@ typedef struct tagDEVICE_TD_INFO { unsigned char *buf; dma_addr_t buf_dma; u16 dwReqCount; - unsigned long dwHeaderLength; unsigned char byFlags; } DEVICE_TD_INFO, *PDEVICE_TD_INFO; diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index f3f6b15..c918248 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -1201,7 +1201,6 @@ s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType, ptdCurr = (PSTxDesc)pHeadTD; ptdCurr->pTDInfo->dwReqCount = (u16)cbReqCount; - ptdCurr->pTDInfo->dwHeaderLength = cbHeaderLength; return cbHeaderLength; }