From patchwork Sun May 31 09:35:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 6515501 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 9D98AC0020 for ; Sun, 31 May 2015 09:36:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B50172042C for ; Sun, 31 May 2015 09:36:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 97C9F204D1 for ; Sun, 31 May 2015 09:36:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390AbbEaJgB (ORCPT ); Sun, 31 May 2015 05:36:01 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:38457 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754435AbbEaJf5 (ORCPT ); Sun, 31 May 2015 05:35:57 -0400 Received: by wizo1 with SMTP id o1so70810010wiz.1 for ; Sun, 31 May 2015 02:35:56 -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=d6/2Etbu/OusHSMvA5K87SPW9SBio9UwnFUO+rSTLvs=; b=X2X5R9NAhvoRoCr/6BE4483RpZOz31DHPtFL7KH9AJYk2Ra8LJT5mQ2fV4nSXqERkS OFie3NbI66PRQMwB6sXgpg+or+VmoiA5CClCmKfutkUmGhAtAfMWKFr66e6MZYE1ZOxP ACJgQEvLpF9imMoiDQpdeDRKhosssQCLbHOwZECichWowtQIOa+RfY+Iywcr5PMmv4Nc s+ZrO90to4tx6+wllz11emp/1MIuQtenCsCo+xosLy2+8RNoOJh586mCoy5LqUtLzfnf eIWK426kFCMoyHqLaI8fdRMzlmiHqGBsD0J5QeRiva0s79I5pzzKHlECH7oAburb9V/S MIxg== X-Received: by 10.195.11.202 with SMTP id ek10mr30352910wjd.12.1433064956653; Sun, 31 May 2015 02:35:56 -0700 (PDT) Received: from tipsey.3.home (188.31.131.59.threembb.co.uk. [188.31.131.59]) by mx.google.com with ESMTPSA id t17sm11193426wij.1.2015.05.31.02.35.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 May 2015 02:35:55 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 2/9] staging: vt6655: dead code remove STAvUpdate802_11Counter Date: Sun, 31 May 2015 10:35:21 +0100 Message-Id: <1433064928-2139-2-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1433064928-2139-1-git-send-email-tvboxspy@gmail.com> References: <1433064928-2139-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=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 This function is nolonger of any future use. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/mib.c | 27 --------------------------- drivers/staging/vt6655/mib.h | 6 ------ 2 files changed, 33 deletions(-) diff --git a/drivers/staging/vt6655/mib.c b/drivers/staging/vt6655/mib.c index d55c762..e9d23a7 100644 --- a/drivers/staging/vt6655/mib.c +++ b/drivers/staging/vt6655/mib.c @@ -110,30 +110,3 @@ void STAvUpdateIsrStatCounter(PSStatCounter pStatistic, unsigned long dwIsr) if (dwIsr & ISR_SOFTTIMER1) /* ISR, bit21 */ pStatistic->ISRStat.dwIsrSTIMER1Int++; } - -/* - * Description: Update 802.11 mib counter - * - * Parameters: - * In: - * p802_11Counter - Pointer to 802.11 mib counter - * pStatistic - Pointer to Statistic Counter Data Structure - * dwCounter - hardware counter for 802.11 mib - * Out: - * none - * - * Return Value: none - * - */ -void -STAvUpdate802_11Counter( - PSDot11Counters p802_11Counter, - PSStatCounter pStatistic, - unsigned long dwCounter -) -{ - p802_11Counter->RTSSuccessCount += (unsigned long long) (dwCounter & 0x000000ff); - p802_11Counter->RTSFailureCount += (unsigned long long) ((dwCounter & 0x0000ff00) >> 8); - p802_11Counter->ACKFailureCount += (unsigned long long) ((dwCounter & 0x00ff0000) >> 16); - p802_11Counter->FCSErrorCount += (unsigned long long) ((dwCounter & 0xff000000) >> 24); -} diff --git a/drivers/staging/vt6655/mib.h b/drivers/staging/vt6655/mib.h index 5cb59b8..64ca360 100644 --- a/drivers/staging/vt6655/mib.h +++ b/drivers/staging/vt6655/mib.h @@ -73,10 +73,4 @@ typedef struct tagSStatCounter { void STAvUpdateIsrStatCounter(PSStatCounter pStatistic, unsigned long dwIsr); -void STAvUpdate802_11Counter( - PSDot11Counters p802_11Counter, - PSStatCounter pStatistic, - unsigned long dwCounter -); - #endif // __MIB_H__