Skip to content

Commit

Permalink
staging: vt6655: Remove all commented macros
Browse files Browse the repository at this point in the history
These macros were reported by forgotten-macros tool
(https://github.com/marcosps/forgotten_macros).

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Marcos Paulo de Souza authored and Greg Kroah-Hartman committed Jul 9, 2012
1 parent 3abe058 commit 27e3b90
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 44 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/vt6655/80211hdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
#define WLAN_HDR_ADDR4_LEN 30
#define WLAN_IEHDR_LEN 2
#define WLAN_SSID_MAXLEN 32
/*#define WLAN_RATES_MAXLEN 255*/
#define WLAN_RATES_MAXLEN 16
#define WLAN_RATES_MAXLEN_11B 4
#define WLAN_RSN_MAXLEN 32
Expand All @@ -106,7 +105,6 @@
#define WLAN_WEP40_KEYLEN 5
#define WLAN_WEP104_KEYLEN 13
#define WLAN_WEP232_KEYLEN 29
/*#define WLAN_WEPMAX_KEYLEN 29*/
#define WLAN_WEPMAX_KEYLEN 32
#define WLAN_CHALLENGE_IE_MAXLEN 255
#define WLAN_CHALLENGE_IE_LEN 130
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/vt6655/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@
//static int msglevel =MSG_LEVEL_DEBUG;
static int msglevel =MSG_LEVEL_INFO;

//#define PLICE_DEBUG

/*--------------------- Static Classes ----------------------------*/

/*--------------------- Static Variables --------------------------*/
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6655/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include "wpa2.h"
#include "iowpa.h"

//#define PLICE_DEBUG
/*--------------------- Static Definitions -------------------------*/


Expand Down
11 changes: 0 additions & 11 deletions drivers/staging/vt6655/desc.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@
#define FRAGCTL_TKIP 0x0002 // 0000 0010 0000 0000
#define FRAGCTL_LEGACY 0x0001 // 0000 0001 0000 0000
#define FRAGCTL_NONENCRYPT 0x0000 // 0000 0000 0000 0000
//#define FRAGCTL_AC3 0x0C00 // 0000 0000 0000 1100
//#define FRAGCTL_AC2 0x0800 // 0000 0000 0000 1000
//#define FRAGCTL_AC1 0x0400 // 0000 0000 0000 0100
//#define FRAGCTL_AC0 0x0000 // 0000 0000 0000 0000
#define FRAGCTL_ENDFRAG 0x0300 // 0000 0000 0000 0011
#define FRAGCTL_MIDFRAG 0x0200 // 0000 0000 0000 0010
#define FRAGCTL_STAFRAG 0x0100 // 0000 0000 0000 0001
Expand Down Expand Up @@ -184,19 +180,13 @@
#define FRAGCTL_TKIP 0x0200 // 0000 0010 0000 0000
#define FRAGCTL_LEGACY 0x0100 // 0000 0001 0000 0000
#define FRAGCTL_NONENCRYPT 0x0000 // 0000 0000 0000 0000
//#define FRAGCTL_AC3 0x000C // 0000 0000 0000 1100
//#define FRAGCTL_AC2 0x0008 // 0000 0000 0000 1000
//#define FRAGCTL_AC1 0x0004 // 0000 0000 0000 0100
//#define FRAGCTL_AC0 0x0000 // 0000 0000 0000 0000
#define FRAGCTL_ENDFRAG 0x0003 // 0000 0000 0000 0011
#define FRAGCTL_MIDFRAG 0x0002 // 0000 0000 0000 0010
#define FRAGCTL_STAFRAG 0x0001 // 0000 0000 0000 0001
#define FRAGCTL_NONFRAG 0x0000 // 0000 0000 0000 0000

#endif // #ifdef __BIG_ENDIAN

//#define TYPE_AC0DMA 0
//#define TYPE_TXDMA0 1
#define TYPE_TXDMA0 0
#define TYPE_AC0DMA 1
#define TYPE_ATIMDMA 2
Expand All @@ -215,7 +205,6 @@
#define TD_FLAGS_NETIF_SKB 0x01 // check if need release skb
#define TD_FLAGS_PRIV_SKB 0x02 // check if called from private skb(hostap)
#define TD_FLAGS_PS_RETRY 0x04 // check if PS STA frame re-transmit
//#define TD_FLAGS_NETIF_SKB 0x04

/*--------------------- Export Types ------------------------------*/

Expand Down
15 changes: 0 additions & 15 deletions drivers/staging/vt6655/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@
#ifndef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
#define WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
#endif
//2008-4-14<add> by chester for led issue
//#define FOR_LED_ON_NOTEBOOK
//


//
// device specific
Expand All @@ -91,12 +87,6 @@
#include "key.h"
#include "mac.h"

//PLICE_DEBUG->
//#define THREAD

//#define TASK_LET
//PLICE_DEBUG<-


/*--------------------- Export Definitions -------------------------*/

Expand All @@ -105,11 +95,6 @@
#define MAX_MULTICAST_ADDRESS_NUM 32
#define MULTICAST_ADDRESS_LIST_SIZE (MAX_MULTICAST_ADDRESS_NUM * ETH_ALEN)


//#define OP_MODE_INFRASTRUCTURE 0
//#define OP_MODE_ADHOC 1
//#define OP_MODE_AP 2

#define DUPLICATE_RX_CACHE_LENGTH 5

#define NUM_KEY_ENTRY 11
Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,19 @@
#include <linux/kthread.h>
#include <linux/slab.h>

//#define DEBUG
/*--------------------- Static Definitions -------------------------*/
//static int msglevel =MSG_LEVEL_DEBUG;
static int msglevel = MSG_LEVEL_INFO;

//#define PLICE_DEBUG
//
// Define module options
//
MODULE_AUTHOR("VIA Networking Technologies, Inc., <lyndonchen@vntek.com.tw>");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver");

//PLICE_DEBUG ->
static int mlme_kill;
//static struct task_struct * mlme_task;
//PLICE_DEBUG <-

#define DEVICE_PARAM(N,D)
/*
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6655/dpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#include "iowpa.h"
#include "aes_ccmp.h"

//#define PLICE_DEBUG


/*--------------------- Static Definitions -------------------------*/
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/vt6655/mib.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ typedef struct tagSMib2Counter {
} SMib2Counter, *PSMib2Counter;

// Value in the ifType entry
//#define ETHERNETCSMACD 6 //
#define WIRELESSLANIEEE80211b 6 //

// Value in the ifAdminStatus/ifOperStatus entry
Expand Down Expand Up @@ -210,7 +209,6 @@ typedef struct tagSISRCounters {
#define UNDER_CREATION 3 //
#define INVALID 4 //

//#define MAX_RATE 12
//
// statistic counter
//
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6655/rf.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#define RF_MAXIMAG 0x02
#define RF_AIROHA 0x03

//#define RF_GCT5103 0x04
#define RF_UW2451 0x05
#define RF_MAXIMG 0x06
#define RF_MAXIM2829 0x07 // RobertYu: 20041118
Expand Down
3 changes: 0 additions & 3 deletions drivers/staging/vt6655/tether.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
#define TYPE_CTL_ACK 0xd400


//#define WEP_IV_MASK 0xFFFFFF00

#else //if LITTLE_ENDIAN
//
// wType field in the SEthernetHeader
Expand Down Expand Up @@ -143,7 +141,6 @@
#define TYPE_CTL_ACK 0x00d4


//#define WEP_IV_MASK 0x00FFFFFF

#endif //#ifdef __BIG_ENDIAN

Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/vt6655/vntwifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
#include "wmgr.h"
#include "datarate.h"

//#define PLICE_DEBUG

/*--------------------- Static Definitions -------------------------*/
//static int msglevel =MSG_LEVEL_DEBUG;
//static int msglevel =MSG_LEVEL_INFO;
Expand Down

0 comments on commit 27e3b90

Please sign in to comment.