Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6655: remove mib.c/h dead code.

Remove from makefile and dead variables

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Malcolm Priestley and committed by
Greg Kroah-Hartman
da74dbac 7e4786d1

-193
-1
drivers/staging/vt6655/Makefile
··· 11 11 dpc.o \ 12 12 power.o \ 13 13 srom.o \ 14 - mib.o \ 15 14 key.o \ 16 15 rf.o 17 16
-4
drivers/staging/vt6655/device.h
··· 68 68 69 69 #include "device_cfg.h" 70 70 #include "card.h" 71 - #include "mib.h" 72 71 #include "srom.h" 73 72 #include "desc.h" 74 73 #include "key.h" ··· 284 285 285 286 unsigned char abyCurrentNetAddr[ETH_ALEN]; __aligned(2) 286 287 bool bLinkPass; /* link status: OK or fail */ 287 - 288 - /* 802.11 counter */ 289 - SDot11Counters s802_11Counter; 290 288 291 289 unsigned int uCurrRSSI; 292 290 unsigned char byCurrSQ;
-112
drivers/staging/vt6655/mib.c
··· 1 - /* 2 - * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. 3 - * All rights reserved. 4 - * 5 - * This program is free software; you can redistribute it and/or modify 6 - * it under the terms of the GNU General Public License as published by 7 - * the Free Software Foundation; either version 2 of the License, or 8 - * (at your option) any later version. 9 - * 10 - * This program is distributed in the hope that it will be useful, 11 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 - * GNU General Public License for more details. 14 - * 15 - * You should have received a copy of the GNU General Public License along 16 - * with this program; if not, write to the Free Software Foundation, Inc., 17 - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 - * 19 - * File: mib.c 20 - * 21 - * Purpose: Implement MIB Data Structure 22 - * 23 - * Author: Tevin Chen 24 - * 25 - * Date: May 21, 1996 26 - * 27 - * Functions: 28 - * STAvUpdateIstStatCounter - Update ISR statistic counter 29 - * STAvUpdate802_11Counter - Update 802.11 mib counter 30 - * 31 - * Revision History: 32 - * 33 - */ 34 - 35 - #include "mac.h" 36 - #include "mib.h" 37 - 38 - /*--------------------- Static Classes ----------------------------*/ 39 - 40 - /*--------------------- Static Variables --------------------------*/ 41 - 42 - /*--------------------- Static Functions --------------------------*/ 43 - 44 - /*--------------------- Export Variables --------------------------*/ 45 - 46 - /*--------------------- Export Functions --------------------------*/ 47 - 48 - /* 49 - * Description: Update Isr Statistic Counter 50 - * 51 - * Parameters: 52 - * In: 53 - * pStatistic - Pointer to Statistic Counter Data Structure 54 - * wisr - Interrupt status 55 - * Out: 56 - * none 57 - * 58 - * Return Value: none 59 - * 60 - */ 61 - void STAvUpdateIsrStatCounter(PSStatCounter pStatistic, unsigned long dwIsr) 62 - { 63 - /**********************/ 64 - /* ABNORMAL interrupt */ 65 - /**********************/ 66 - /* not any IMR bit invoke irq */ 67 - 68 - if (dwIsr == 0) { 69 - pStatistic->ISRStat.dwIsrUnknown++; 70 - return; 71 - } 72 - 73 - /* Added by Kyle */ 74 - if (dwIsr & ISR_TXDMA0) /* ISR, bit0 */ 75 - pStatistic->ISRStat.dwIsrTx0OK++; /* TXDMA0 successful */ 76 - 77 - if (dwIsr & ISR_AC0DMA) /* ISR, bit1 */ 78 - pStatistic->ISRStat.dwIsrAC0TxOK++; /* AC0DMA successful */ 79 - 80 - if (dwIsr & ISR_BNTX) /* ISR, bit2 */ 81 - pStatistic->ISRStat.dwIsrBeaconTxOK++; /* BeaconTx successful */ 82 - 83 - if (dwIsr & ISR_RXDMA0) /* ISR, bit3 */ 84 - pStatistic->ISRStat.dwIsrRx0OK++; /* Rx0 successful */ 85 - 86 - if (dwIsr & ISR_TBTT) /* ISR, bit4 */ 87 - pStatistic->ISRStat.dwIsrTBTTInt++; /* TBTT successful */ 88 - 89 - if (dwIsr & ISR_SOFTTIMER) /* ISR, bit6 */ 90 - pStatistic->ISRStat.dwIsrSTIMERInt++; 91 - 92 - if (dwIsr & ISR_WATCHDOG) /* ISR, bit7 */ 93 - pStatistic->ISRStat.dwIsrWatchDog++; 94 - 95 - if (dwIsr & ISR_FETALERR) /* ISR, bit8 */ 96 - pStatistic->ISRStat.dwIsrUnrecoverableError++; 97 - 98 - if (dwIsr & ISR_SOFTINT) /* ISR, bit9 */ 99 - pStatistic->ISRStat.dwIsrSoftInterrupt++; /* software interrupt */ 100 - 101 - if (dwIsr & ISR_MIBNEARFULL) /* ISR, bit10 */ 102 - pStatistic->ISRStat.dwIsrMIBNearfull++; 103 - 104 - if (dwIsr & ISR_RXNOBUF) /* ISR, bit11 */ 105 - pStatistic->ISRStat.dwIsrRxNoBuf++; /* Rx No Buff */ 106 - 107 - if (dwIsr & ISR_RXDMA1) /* ISR, bit12 */ 108 - pStatistic->ISRStat.dwIsrRx1OK++; /* Rx1 successful */ 109 - 110 - if (dwIsr & ISR_SOFTTIMER1) /* ISR, bit21 */ 111 - pStatistic->ISRStat.dwIsrSTIMER1Int++; 112 - }
-76
drivers/staging/vt6655/mib.h
··· 1 - /* 2 - * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. 3 - * All rights reserved. 4 - * 5 - * This program is free software; you can redistribute it and/or modify 6 - * it under the terms of the GNU General Public License as published by 7 - * the Free Software Foundation; either version 2 of the License, or 8 - * (at your option) any later version. 9 - * 10 - * This program is distributed in the hope that it will be useful, 11 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 - * GNU General Public License for more details. 14 - * 15 - * You should have received a copy of the GNU General Public License along 16 - * with this program; if not, write to the Free Software Foundation, Inc., 17 - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 - * 19 - * File: mib.h 20 - * 21 - * Purpose: Implement MIB Data Structure 22 - * 23 - * Author: Tevin Chen 24 - * 25 - * Date: May 21, 1996 26 - * 27 - */ 28 - 29 - #ifndef __MIB_H__ 30 - #define __MIB_H__ 31 - 32 - #include "desc.h" 33 - 34 - // 35 - // 802.11 counter 36 - // 37 - 38 - typedef struct tagSDot11Counters { 39 - unsigned long long RTSSuccessCount; 40 - unsigned long long RTSFailureCount; 41 - unsigned long long ACKFailureCount; 42 - unsigned long long FCSErrorCount; 43 - } SDot11Counters, *PSDot11Counters; 44 - 45 - // 46 - // Custom counter 47 - // 48 - typedef struct tagSISRCounters { 49 - unsigned long dwIsrTx0OK; 50 - unsigned long dwIsrAC0TxOK; 51 - unsigned long dwIsrBeaconTxOK; 52 - unsigned long dwIsrRx0OK; 53 - unsigned long dwIsrTBTTInt; 54 - unsigned long dwIsrSTIMERInt; 55 - unsigned long dwIsrWatchDog; 56 - unsigned long dwIsrUnrecoverableError; 57 - unsigned long dwIsrSoftInterrupt; 58 - unsigned long dwIsrMIBNearfull; 59 - unsigned long dwIsrRxNoBuf; 60 - 61 - unsigned long dwIsrUnknown; 62 - 63 - unsigned long dwIsrRx1OK; 64 - unsigned long dwIsrSTIMER1Int; 65 - } SISRCounters, *PSISRCounters; 66 - 67 - // 68 - // statistic counter 69 - // 70 - typedef struct tagSStatCounter { 71 - SISRCounters ISRStat; 72 - } SStatCounter, *PSStatCounter; 73 - 74 - void STAvUpdateIsrStatCounter(PSStatCounter pStatistic, unsigned long dwIsr); 75 - 76 - #endif // __MIB_H__