Skip to contentSkip to conversation

staging: vt6656: dpc.c: Remove dead code

PATCH In review Marcos Paulo de Souza 1 participant 1 message Dec 1, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 staging: vt6656: dpc.c: Remove dead code

This patch removes some dead code, unneeded comments, commented code and some unneeded debug messages.

---
 drivers/staging/vt6656/device.h |   13 ------
 drivers/staging/vt6656/dpc.c    |   92 +-------------------------------------
 2 files changed, 3 insertions(+), 102 deletions(-)
drivers/staging/vt6656/device.h +0 -13
index f1496ec..59cf5fc 100644
@@ -97,7 +97,6 @@
 #include "key.h"
 #include "card.h"
 
-/*---------------------  Export Definitions -------------------------*/
 #define VNT_USB_VENDOR_ID                     0x160a
 #define VNT_USB_PRODUCT_ID                    0x3184
 
@@ -106,10 +105,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
@@ -165,8 +160,6 @@
 
 #define PRIVATE_Message                 0
 
-/*---------------------  Export Types  ------------------------------*/
-
 #define DBG_PRT(l, p, args...) { if (l <= msglevel) printk(p, ##args); }
 #define PRINT_K(p, args...) { if (PRIVATE_Message) printk(p, ##args); }
 
@@ -236,7 +229,6 @@ typedef struct _DEFAULT_CONFIG {
 typedef struct {
     unsigned int            uDataLen;
     PBYTE           pDataBuf;
-//    struct urb      *pUrb;
     BOOL            bInUse;
 } INT_BUFFER, *PINT_BUFFER;
 
@@ -897,11 +889,6 @@ typedef struct __device_info {
 #define MP_IS_READY(_M)        (((_M)->Flags & \
                                  (fMP_DISCONNECTED | fMP_RESET_IN_PROGRESS | fMP_HALT_IN_PROGRESS | fMP_INIT_IN_PROGRESS | fMP_SURPRISE_REMOVED)) == 0)
 
-/*---------------------  Export Functions  --------------------------*/
-
-/* BOOL device_dma0_xmit(PSDevice pDevice, struct sk_buff *skb,
- *                       unsigned int uNodeIndex);
- */
 BOOL device_alloc_frag_buf(PSDevice pDevice, PSDeFragControlBlock pDeF);
 
 #endif
drivers/staging/vt6656/dpc.c +3 -89

205 lines not on this page · raw message

Signature · 1 line
1.7.4.4