Skip to content

Commit 3644c1a

Browse files
author
Stephen Hemminger
committed
beceem: remove dead code
Remove commented out with '#if 0' Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
1 parent 9371105 commit 3644c1a

15 files changed

Lines changed: 1 addition & 822 deletions

‎drivers/staging/bcm/Adapter.h‎

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,6 @@
77
#define MAX_FRAGMENTEDIP_CLASSIFICATION_ENTRIES 256
88
#include "Debug.h"
99

10-
typedef struct _LIST_ENTRY{
11-
struct _LIST_ENTRY *next;
12-
struct _LIST_ENTRY *prev;
13-
} LIST_ENTRY, *PLIST_ENTRY;
14-
15-
typedef struct _BCM_LIST_ENTRY {
16-
17-
LIST_ENTRY Link;
18-
19-
} BCM_LIST_ENTRY, *PBCM_LIST_ENTRY;
20-
21-
typedef enum _RCB_STATUS
22-
{
23-
DRIVER_PROCESSED=1,
24-
APPLICATION_PROCESSED
25-
} RCB_STATUS, *PRCB_STATUS;
26-
27-
#define fFILLED 1
28-
#define fEMPTY 0
29-
30-
struct _BCM_CB
31-
{
32-
// The network packet that this RCB is receiving
33-
PVOID pv_packet;
34-
// Describes the length of the packet .
35-
UINT ui_packet_length;
36-
// Pointer to the first buffer in the packet (only one buffer for Rx)
37-
PUCHAR buffer;
38-
atomic_t status;
39-
UINT filled;
40-
} __attribute__((packed));
41-
typedef struct _BCM_CB BCM_CB,*PBCM_CB;
42-
43-
typedef BCM_CB BCM_RCB, *PBCM_RCB;
44-
typedef BCM_CB BCM_TCB, *PBCM_TCB;
45-
4610
struct _LEADER
4711
{
4812
USHORT Vcid;
@@ -555,7 +519,7 @@ struct _MINI_ADAPTER
555519
unsigned int usIdleModePattern;
556520
//BOOLEAN bTriedToWakeUpFromShutdown;
557521
BOOLEAN bLinkDownRequested;
558-
unsigned int check_for_hang;
522+
559523
int downloadDDR;
560524
PHS_DEVICE_EXTENSION stBCMPhsContext;
561525
S_HDR_SUPRESSION_CONTEXTINFO stPhsTxContextInfo;
@@ -625,12 +589,6 @@ typedef struct _MINI_ADAPTER MINI_ADAPTER, *PMINI_ADAPTER;
625589

626590
#define GET_BCM_ADAPTER(net_dev) netdev_priv(net_dev)
627591

628-
typedef struct _DEVICE_EXTENSION
629-
{
630-
PMINI_ADAPTER pAdapt;
631-
}DEVICE_EXTENSION,*PDEVICE_EXTENSION;
632-
633-
634592
struct _ETH_HEADER_STRUC {
635593
UCHAR au8DestinationAddress[6];
636594
UCHAR au8SourceAddress[6];

‎drivers/staging/bcm/Bcmchar.c‎

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,10 +1207,6 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
12071207
Adapter->usIdleModePattern = ABORT_IDLE_MODE;
12081208
Adapter->bWakeUpDevice = TRUE;
12091209
wake_up(&Adapter->process_rx_cntrlpkt);
1210-
#if 0
1211-
Adapter->bTriedToWakeUpFromlowPowerMode = TRUE;
1212-
InterfaceAbortIdlemode (Adapter, Adapter->usIdleModePattern);
1213-
#endif
12141210
}
12151211
Status = STATUS_SUCCESS;
12161212
break;
@@ -1750,14 +1746,6 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
17501746
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,"\nsFlash2xRead.offset :%d" ,sFlash2xWrite.offset);
17511747
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,"\nsFlash2xRead.numOfBytes :%x" ,sFlash2xWrite.numOfBytes);
17521748
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,"\nsFlash2xRead.bVerify :%x\n" ,sFlash2xWrite.bVerify);
1753-
#if 0
1754-
if((sFlash2xWrite.Section == ISO_IMAGE1) ||(sFlash2xWrite.Section == ISO_IMAGE2) ||
1755-
(sFlash2xWrite.Section == DSD0) || (sFlash2xWrite.Section == DSD1) || (sFlash2xWrite.Section == DSD2))
1756-
{
1757-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,"ISO/DSD Image write is not allowed.... ");
1758-
return STATUS_FAILURE ;
1759-
}
1760-
#endif
17611749
if((sFlash2xWrite.Section != VSA0) && (sFlash2xWrite.Section != VSA1) &&
17621750
(sFlash2xWrite.Section != VSA2) )
17631751
{
@@ -1940,29 +1928,6 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
19401928
Adapter->bAllDSDWriteAllow = FALSE ;
19411929
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,"IOCTL_BCM_IDENTIFY_ACTIVE_SECTION called");
19421930

1943-
#if 0
1944-
SECTION_TYPE section = 0 ;
1945-
1946-
1947-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "IOCTL_BCM_IDENTIFY_ACTIVE_SECTION Called");
1948-
Status = copy_from_user((PCHAR)&IoBuffer, (PCHAR)arg, sizeof(IOCTL_BUFFER));
1949-
if(Status)
1950-
{
1951-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "Copy of IOCTL BUFFER failed");
1952-
return -EFAULT;
1953-
}
1954-
Status = copy_from_user((PCHAR)section,(PCHAR)&IoBuffer, sizeof(INT));
1955-
if(Status)
1956-
{
1957-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "Copy of section type failed failed");
1958-
return -EFAULT;
1959-
}
1960-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,"Read Section :%d", section);
1961-
if(section == DSD)
1962-
Adapter->ulFlashCalStart = Adapter->uiActiveDSDOffsetAtFwDld ;
1963-
else
1964-
Status = STATUS_FAILURE ;
1965-
#endif
19661931
Status = STATUS_SUCCESS ;
19671932
}
19681933
break ;

‎drivers/staging/bcm/CmHost.c‎

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,12 +1063,6 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
10631063
pstAddIndication->sfAuthorizedSet.u32MaxTrafficBurst);
10641064
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u32MinReservedTrafficRate : 0x%X",
10651065
pstAddIndication->sfAuthorizedSet.u32MinReservedTrafficRate);
1066-
#if 0
1067-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u32MinimumTolerableTrafficRate : 0x%X",
1068-
pstAddIndication->sfAuthorizedSet.u32MinimumTolerableTrafficRate);
1069-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u32RequesttransmissionPolicy : 0x%X",
1070-
pstAddIndication->sfAuthorizedSet.u32RequesttransmissionPolicy);
1071-
#endif
10721066
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8VendorSpecificQoSParamLength : 0x%X",
10731067
pstAddIndication->sfAuthorizedSet.u8VendorSpecificQoSParamLength);
10741068
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8VendorSpecificQoSParam : 0x%X",
@@ -1116,13 +1110,6 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
11161110
pstAddIndication->sfAuthorizedSet.u8PagingPreference);
11171111
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u16UnsolicitedPollingInterval : 0x%X",
11181112
pstAddIndication->sfAuthorizedSet.u16UnsolicitedPollingInterval);
1119-
#if 0
1120-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "MBSZoneIdentifierassignmentLength : 0x%X",
1121-
pstAddIndication->sfAuthorizedSet.MBSZoneIdentifierassignmentLength);
1122-
for(uiLoopIndex=0; uiLoopIndex < MAX_STRING_LEN; uiLoopIndex++)
1123-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "MBSZoneIdentifierassignment : 0x%X",
1124-
pstAddIndication->sfAuthorizedSet.MBSZoneIdentifierassignment[uiLoopIndex]);
1125-
#endif
11261113

11271114
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "sfAuthorizedSet.u8HARQChannelMapping %x %x %x ",
11281115
*(unsigned int*)pstAddIndication->sfAuthorizedSet.u8HARQChannelMapping,
@@ -1160,11 +1147,6 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
11601147
psfCSType->cCPacketClassificationRule.u8IPTypeOfService[0],
11611148
psfCSType->cCPacketClassificationRule.u8IPTypeOfService[1],
11621149
psfCSType->cCPacketClassificationRule.u8IPTypeOfService[2]);
1163-
#if 0
1164-
1165-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "u8ProtocolLength :0x%X ",
1166-
psfCSType->cCPacketClassificationRule.u8ProtocolLength);
1167-
#endif
11681150

11691151
for(uiLoopIndex=0; uiLoopIndex < 1; uiLoopIndex++)
11701152
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8Protocol : 0x%02X ",
@@ -1280,14 +1262,6 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
12801262
pstAddIndication->sfAdmittedSet.u8QosParamSet);
12811263
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8TrafficPriority : 0x%02X",
12821264
pstAddIndication->sfAdmittedSet.u8TrafficPriority);
1283-
#if 0
1284-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "u32MaxSustainedTrafficRate : 0x%02X",
1285-
ntohl(pstAddIndication->sfAdmittedSet.u32MaxSustainedTrafficRate));
1286-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "u32MinimumTolerableTrafficRate : 0x%X",
1287-
pstAddIndication->sfAdmittedSet.u32MinimumTolerableTrafficRate);
1288-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "u32RequesttransmissionPolicy : 0x%X",
1289-
pstAddIndication->sfAdmittedSet.u32RequesttransmissionPolicy);
1290-
#endif
12911265
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u32MaxTrafficBurst : 0x%X",
12921266
pstAddIndication->sfAdmittedSet.u32MaxTrafficBurst);
12931267
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u32MinReservedTrafficRate : 0x%X",
@@ -1341,13 +1315,6 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
13411315
pstAddIndication->sfAdmittedSet.u16TimeBase);
13421316
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8PagingPreference : 0x%X",
13431317
pstAddIndication->sfAdmittedSet.u8PagingPreference);
1344-
#if 0
1345-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "MBSZoneIdentifierassignmentLength : 0x%X",
1346-
pstAddIndication->sfAdmittedSet.MBSZoneIdentifierassignmentLength);
1347-
for(uiLoopIndex=0; uiLoopIndex < MAX_STRING_LEN; uiLoopIndex++)
1348-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "MBSZoneIdentifierassignment : 0x%X",
1349-
pstAddIndication->sfAdmittedSet.MBSZoneIdentifierassignment[uiLoopIndex]);
1350-
#endif
13511318

13521319

13531320
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8TrafficIndicationPreference : 0x%02X",
@@ -1380,11 +1347,6 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
13801347
psfCSType->cCPacketClassificationRule.u8IPTypeOfService[0],
13811348
psfCSType->cCPacketClassificationRule.u8IPTypeOfService[1],
13821349
psfCSType->cCPacketClassificationRule.u8IPTypeOfService[2]);
1383-
#if 0
1384-
1385-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8ProtocolLength :0x%02X ",
1386-
psfCSType->cCPacketClassificationRule.u8ProtocolLength);
1387-
#endif
13881350
for(uiLoopIndex=0; uiLoopIndex < 1; uiLoopIndex++)
13891351
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8Protocol: 0x%02X ",
13901352
psfCSType->cCPacketClassificationRule.u8Protocol);
@@ -1499,20 +1461,10 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
14991461
pstAddIndication->sfActiveSet.u8QosParamSet);
15001462
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8TrafficPriority : 0x%02X",
15011463
pstAddIndication->sfActiveSet.u8TrafficPriority);
1502-
#if 0
1503-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "u32MaxSustainedTrafficRate : 0x%02X",
1504-
ntohl(pstAddIndication->sfActiveSet.u32MaxSustainedTrafficRate));
1505-
#endif
15061464
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u32MaxTrafficBurst : 0x%X",
15071465
pstAddIndication->sfActiveSet.u32MaxTrafficBurst);
15081466
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u32MinReservedTrafficRate : 0x%X",
15091467
pstAddIndication->sfActiveSet.u32MinReservedTrafficRate);
1510-
#if 0
1511-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "u32MinimumTolerableTrafficRate : 0x%X",
1512-
pstAddIndication->sfActiveSet.u32MinimumTolerableTrafficRate);
1513-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "u32RequesttransmissionPolicy : 0x%X",
1514-
pstAddIndication->sfActiveSet.u32RequesttransmissionPolicy);
1515-
#endif
15161468
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8VendorSpecificQoSParamLength : 0x%02X",
15171469
pstAddIndication->sfActiveSet.u8VendorSpecificQoSParamLength);
15181470
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8VendorSpecificQoSParam : 0x%02X",
@@ -1560,13 +1512,6 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
15601512
pstAddIndication->sfActiveSet.u16TimeBase);
15611513
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " u8PagingPreference : 0x%X",
15621514
pstAddIndication->sfActiveSet.u8PagingPreference);
1563-
#if 0
1564-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " MBSZoneIdentifierassignmentLength : 0x%X",
1565-
pstAddIndication->sfActiveSet.MBSZoneIdentifierassignmentLength);
1566-
for(uiLoopIndex=0; uiLoopIndex < MAX_STRING_LEN; uiLoopIndex++)
1567-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " MBSZoneIdentifierassignment : 0x%X",
1568-
pstAddIndication->sfActiveSet.MBSZoneIdentifierassignment[uiLoopIndex]);
1569-
#endif
15701515

15711516

15721517
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " u8TrafficIndicationPreference : 0x%X",
@@ -1599,11 +1544,6 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
15991544
psfCSType->cCPacketClassificationRule.u8IPTypeOfService[0],
16001545
psfCSType->cCPacketClassificationRule.u8IPTypeOfService[1],
16011546
psfCSType->cCPacketClassificationRule.u8IPTypeOfService[2]);
1602-
#if 0
1603-
1604-
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, " u8ProtocolLength :0x%X ",
1605-
psfCSType->cCPacketClassificationRule.u8ProtocolLength);
1606-
#endif
16071547
for(uiLoopIndex=0; uiLoopIndex < 1; uiLoopIndex++)
16081548
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " u8Protocol : 0x%X ",
16091549
psfCSType->cCPacketClassificationRule.u8Protocol);

‎drivers/staging/bcm/DDRInit.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,6 @@ static DDR_SET_NODE asDPLL_266MHZ[] = {
187187
{0x0f000840,0x0FFF1B00},
188188
{0x0f000870,0x00000002}
189189
};
190-
#if 0
191-
static DDR_SET_NODE asDPLL_800MHZ[] = {
192-
{0x0f000810,0x00000F95},
193-
{0x0f000810,0x00000F95},
194-
{0x0f000810,0x00000F95},
195-
{0x0f000820,0x03F1365B},
196-
{0x0f000840,0x0FFF0000},
197-
{0x0f000880,0x000003DD},
198-
{0x0f000860,0x00000000}
199-
};
200-
#endif
201190

202191
#define T3B_SKIP_CLOCK_PROGRAM_DUMP_133MHZ 11 //index for 0x0F007000
203192
static DDR_SET_NODE asT3B_DDRSetting133MHz[] = {// # DPLL Clock Setting

‎drivers/staging/bcm/HandleControlPacket.c‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -186,29 +186,6 @@ int control_packet_handler (PMINI_ADAPTER Adapter /**< pointer to adapter obje
186186
DEQUEUEPACKET(Adapter->RxControlHead,Adapter->RxControlTail);
187187
// Adapter->RxControlHead=ctrl_packet->next;
188188
}
189-
#if 0 //Idle mode debug profiling...
190-
if(*(PUSHORT)ctrl_packet->data == IDLE_MODE_STATUS)
191-
{
192-
puiBuffer = (PUINT)(ctrl_packet->data +sizeof(USHORT));
193-
if((ntohl(*puiBuffer) == GO_TO_IDLE_MODE_PAYLOAD))
194-
{
195-
memset(&tv, 0, sizeof(tv));
196-
do_gettimeofday(&tv);
197-
if((ntohl(*(puiBuffer+1)) == 0))
198-
{
199-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, CP_CTRL_PKT, DBG_LVL_ALL, "IdleMode Wake-up Msg from f/w at time :%ld ms", tv.tv_sec *1000 + tv.tv_usec /1000);
200-
}
201-
else
202-
{
203-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, CP_CTRL_PKT, DBG_LVL_ALL, "IdleMode req Msg from f/w at time :%ld ms", tv.tv_sec *1000 + tv.tv_usec /1000);
204-
}
205-
}
206-
else if((ntohl(*puiBuffer) == IDLE_MODE_SF_UPDATE_MSG))
207-
{
208-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, CP_CTRL_PKT, DBG_LVL_ALL, "GOT IDLE_MODE_SF_UPDATE MSG at time :%ld ms", tv.tv_sec *1000 + tv.tv_usec /1000);
209-
}
210-
}
211-
#endif
212189

213190
spin_unlock_irqrestore (&Adapter->control_queue_lock, flags);
214191
handle_rx_control_packet(Adapter, ctrl_packet);

0 commit comments

Comments
 (0)