提交 6487c49e 编写于 作者: A Andres More 提交者: Greg Kroah-Hartman

staging: vt6656: removed NTSTATUS definition

Replaced NTSTATUS with int, as defined in a couple of places.
Signed-off-by: NAndres More <more.andres@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 22040bbf
...@@ -989,10 +989,10 @@ BBvSetAntennaMode (PSDevice pDevice, BYTE byAntennaMode) ...@@ -989,10 +989,10 @@ BBvSetAntennaMode (PSDevice pDevice, BYTE byAntennaMode)
* Return Value: none * Return Value: none
* *
*/ */
BOOL
BBbVT3184Init (PSDevice pDevice) BOOL BBbVT3184Init(PSDevice pDevice)
{ {
NTSTATUS ntStatus; int ntStatus;
WORD wLength; WORD wLength;
PBYTE pbyAddr; PBYTE pbyAddr;
PBYTE pbyAgc; PBYTE pbyAgc;
......
...@@ -72,7 +72,7 @@ void ControlvWriteByte(PSDevice pDevice, BYTE byRegType, BYTE byRegOfs, ...@@ -72,7 +72,7 @@ void ControlvWriteByte(PSDevice pDevice, BYTE byRegType, BYTE byRegOfs,
void ControlvReadByte(PSDevice pDevice, BYTE byRegType, BYTE byRegOfs, void ControlvReadByte(PSDevice pDevice, BYTE byRegType, BYTE byRegOfs,
PBYTE pbyData) PBYTE pbyData)
{ {
NTSTATUS ntStatus; int ntStatus;
BYTE byData1; BYTE byData1;
ntStatus = CONTROLnsRequestIn(pDevice, ntStatus = CONTROLnsRequestIn(pDevice,
MESSAGE_TYPE_READ, MESSAGE_TYPE_READ,
......
...@@ -259,7 +259,6 @@ typedef enum _VIA_PKT_TYPE ...@@ -259,7 +259,6 @@ typedef enum _VIA_PKT_TYPE
//++ NDIS related //++ NDIS related
#define NDIS_STATUS int #define NDIS_STATUS int
#define NTSTATUS int
typedef enum __DEVICE_NDIS_STATUS { typedef enum __DEVICE_NDIS_STATUS {
STATUS_SUCCESS = 0, STATUS_SUCCESS = 0,
......
...@@ -1519,7 +1519,7 @@ static BOOL s_bAPModeRxData ( ...@@ -1519,7 +1519,7 @@ static BOOL s_bAPModeRxData (
void RXvWorkItem(void *Context) void RXvWorkItem(void *Context)
{ {
PSDevice pDevice = (PSDevice) Context; PSDevice pDevice = (PSDevice) Context;
NTSTATUS ntStatus; int ntStatus;
PRCB pRCB=NULL; PRCB pRCB=NULL;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->Rx Polling Thread\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->Rx Polling Thread\n");
......
...@@ -848,7 +848,7 @@ FIRMWAREbCheckVersion( ...@@ -848,7 +848,7 @@ FIRMWAREbCheckVersion(
PSDevice pDevice PSDevice pDevice
) )
{ {
NTSTATUS ntStatus; int ntStatus;
ntStatus = CONTROLnsRequestIn(pDevice, ntStatus = CONTROLnsRequestIn(pDevice,
MESSAGE_TYPE_READ, MESSAGE_TYPE_READ,
......
...@@ -82,7 +82,7 @@ static int msglevel = MSG_LEVEL_INFO; ...@@ -82,7 +82,7 @@ static int msglevel = MSG_LEVEL_INFO;
void INTvWorkItem(void *Context) void INTvWorkItem(void *Context)
{ {
PSDevice pDevice = (PSDevice) Context; PSDevice pDevice = (PSDevice) Context;
NTSTATUS ntStatus; int ntStatus;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->Interrupt Polling Thread\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->Interrupt Polling Thread\n");
...@@ -92,10 +92,9 @@ void INTvWorkItem(void *Context) ...@@ -92,10 +92,9 @@ void INTvWorkItem(void *Context)
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
} }
NTSTATUS int INTnsProcessData(PSDevice pDevice)
INTnsProcessData(PSDevice pDevice)
{ {
NTSTATUS status = STATUS_SUCCESS; int status = STATUS_SUCCESS;
PSINTData pINTData; PSINTData pINTData;
PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
struct net_device_stats *pStats = &pDevice->stats; struct net_device_stats *pStats = &pDevice->stats;
......
...@@ -68,10 +68,6 @@ SINTData, *PSINTData; ...@@ -68,10 +68,6 @@ SINTData, *PSINTData;
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
void INTvWorkItem(void *Context); void INTvWorkItem(void *Context);
int INTnsProcessData(PSDevice pDevice);
NTSTATUS
INTnsProcessData(
PSDevice pDevice
);
#endif /* __INT_H__ */ #endif /* __INT_H__ */
...@@ -366,7 +366,7 @@ static BOOL device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType) ...@@ -366,7 +366,7 @@ static BOOL device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType)
BYTE byAntenna; BYTE byAntenna;
unsigned int ii; unsigned int ii;
CMD_CARD_INIT sInitCmd; CMD_CARD_INIT sInitCmd;
NTSTATUS ntStatus = STATUS_SUCCESS; int ntStatus = STATUS_SUCCESS;
RSP_CARD_INIT sInitRsp; RSP_CARD_INIT sInitRsp;
PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
BYTE byTmp; BYTE byTmp;
......
...@@ -583,10 +583,7 @@ STAvClear802_11Counter(PSDot11Counters p802_11Counter) ...@@ -583,10 +583,7 @@ STAvClear802_11Counter(PSDot11Counters p802_11Counter)
* *
*/ */
void void STAvUpdateUSBCounter(PSUSBCounter pUsbCounter, int ntStatus)
STAvUpdateUSBCounter(PSUSBCounter pUsbCounter,
NTSTATUS ntStatus
)
{ {
// if ( ntStatus == USBD_STATUS_CRC ) { // if ( ntStatus == USBD_STATUS_CRC ) {
...@@ -594,5 +591,3 @@ STAvUpdateUSBCounter(PSUSBCounter pUsbCounter, ...@@ -594,5 +591,3 @@ STAvUpdateUSBCounter(PSUSBCounter pUsbCounter,
// } // }
} }
...@@ -369,8 +369,6 @@ typedef struct tagSStatCounter { ...@@ -369,8 +369,6 @@ typedef struct tagSStatCounter {
} SStatCounter, *PSStatCounter; } SStatCounter, *PSStatCounter;
#define NTSTATUS int
/*--------------------- Export Classes ----------------------------*/ /*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
...@@ -407,11 +405,6 @@ STAvUpdate802_11Counter( ...@@ -407,11 +405,6 @@ STAvUpdate802_11Counter(
); );
void STAvClear802_11Counter(PSDot11Counters p802_11Counter); void STAvClear802_11Counter(PSDot11Counters p802_11Counter);
void STAvUpdateUSBCounter(PSUSBCounter pUsbCounter, int ntStatus);
void
STAvUpdateUSBCounter(
PSUSBCounter pUsbCounter,
NTSTATUS ntStatus
);
#endif /* __MIB_H__ */ #endif /* __MIB_H__ */
...@@ -2729,14 +2729,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb) { ...@@ -2729,14 +2729,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb) {
* Return Value: NULL * Return Value: NULL
*/ */
int nsDMA_tx_packet(PSDevice pDevice, unsigned int uDMAIdx, struct sk_buff *skb)
NTSTATUS
nsDMA_tx_packet(
PSDevice pDevice,
unsigned int uDMAIdx,
struct sk_buff *skb
)
{ {
PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
unsigned int BytesToWrite = 0, uHeaderLen = 0; unsigned int BytesToWrite = 0, uHeaderLen = 0;
......
...@@ -683,9 +683,9 @@ bPacketToWirelessUsb( ...@@ -683,9 +683,9 @@ bPacketToWirelessUsb(
); );
void vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb); void vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb);
NTSTATUS nsDMA_tx_packet(PSDevice pDevice, int nsDMA_tx_packet(PSDevice pDevice,
unsigned int uDMAIdx, unsigned int uDMAIdx,
struct sk_buff *skb); struct sk_buff *skb);
CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket); CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket); CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
BOOL bRelayPacketSend(PSDevice pDevice, PBYTE pbySkbData, BOOL bRelayPacketSend(PSDevice pDevice, PBYTE pbySkbData,
......
...@@ -107,10 +107,7 @@ s_nsControlInUsbIoCompleteWrite( ...@@ -107,10 +107,7 @@ s_nsControlInUsbIoCompleteWrite(
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
int PIPEnsControlOutAsyn(
NTSTATUS
PIPEnsControlOutAsyn(
PSDevice pDevice, PSDevice pDevice,
BYTE byRequest, BYTE byRequest,
WORD wValue, WORD wValue,
...@@ -119,8 +116,7 @@ PIPEnsControlOutAsyn( ...@@ -119,8 +116,7 @@ PIPEnsControlOutAsyn(
PBYTE pbyBuffer PBYTE pbyBuffer
) )
{ {
NTSTATUS ntStatus; int ntStatus;
if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED)) if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED))
return STATUS_FAILURE; return STATUS_FAILURE;
...@@ -156,12 +152,7 @@ PIPEnsControlOutAsyn( ...@@ -156,12 +152,7 @@ PIPEnsControlOutAsyn(
return ntStatus; return ntStatus;
} }
int PIPEnsControlOut(
NTSTATUS
PIPEnsControlOut(
PSDevice pDevice, PSDevice pDevice,
BYTE byRequest, BYTE byRequest,
WORD wValue, WORD wValue,
...@@ -170,10 +161,9 @@ PIPEnsControlOut( ...@@ -170,10 +161,9 @@ PIPEnsControlOut(
PBYTE pbyBuffer PBYTE pbyBuffer
) )
{ {
NTSTATUS ntStatus = 0; int ntStatus = 0;
int ii; int ii;
if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED)) if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED))
return STATUS_FAILURE; return STATUS_FAILURE;
...@@ -219,11 +209,7 @@ PIPEnsControlOut( ...@@ -219,11 +209,7 @@ PIPEnsControlOut(
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
int PIPEnsControlIn(
NTSTATUS
PIPEnsControlIn(
PSDevice pDevice, PSDevice pDevice,
BYTE byRequest, BYTE byRequest,
WORD wValue, WORD wValue,
...@@ -232,7 +218,7 @@ PIPEnsControlIn( ...@@ -232,7 +218,7 @@ PIPEnsControlIn(
PBYTE pbyBuffer PBYTE pbyBuffer
) )
{ {
NTSTATUS ntStatus = 0; int ntStatus = 0;
int ii; int ii;
if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED)) if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED))
...@@ -360,13 +346,9 @@ s_nsControlInUsbIoCompleteRead( ...@@ -360,13 +346,9 @@ s_nsControlInUsbIoCompleteRead(
* Return Value: STATUS_INSUFFICIENT_RESOURCES or result of IoCallDriver * Return Value: STATUS_INSUFFICIENT_RESOURCES or result of IoCallDriver
* *
*/ */
NTSTATUS int PIPEnsInterruptRead(PSDevice pDevice)
PIPEnsInterruptRead(
PSDevice pDevice
)
{ {
NTSTATUS ntStatus = STATUS_FAILURE; int ntStatus = STATUS_FAILURE;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsStartInterruptUsbRead()\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsStartInterruptUsbRead()\n");
...@@ -423,8 +405,7 @@ s_nsInterruptUsbIoCompleteRead( ...@@ -423,8 +405,7 @@ s_nsInterruptUsbIoCompleteRead(
{ {
PSDevice pDevice; PSDevice pDevice;
NTSTATUS ntStatus; int ntStatus;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsInterruptUsbIoCompleteRead\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsInterruptUsbIoCompleteRead\n");
// //
...@@ -503,13 +484,9 @@ s_nsInterruptUsbIoCompleteRead( ...@@ -503,13 +484,9 @@ s_nsInterruptUsbIoCompleteRead(
* Return Value: STATUS_INSUFFICIENT_RESOURCES or result of IoCallDriver * Return Value: STATUS_INSUFFICIENT_RESOURCES or result of IoCallDriver
* *
*/ */
NTSTATUS int PIPEnsBulkInUsbRead(PSDevice pDevice, PRCB pRCB)
PIPEnsBulkInUsbRead(
PSDevice pDevice,
PRCB pRCB
)
{ {
NTSTATUS ntStatus= 0; int ntStatus = 0;
struct urb *pUrb; struct urb *pUrb;
...@@ -579,9 +556,7 @@ s_nsBulkInUsbIoCompleteRead( ...@@ -579,9 +556,7 @@ s_nsBulkInUsbIoCompleteRead(
unsigned long bytesRead; unsigned long bytesRead;
BOOL bIndicateReceive = FALSE; BOOL bIndicateReceive = FALSE;
BOOL bReAllocSkb = FALSE; BOOL bReAllocSkb = FALSE;
NTSTATUS status; int status;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkInUsbIoCompleteRead\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkInUsbIoCompleteRead\n");
status = urb->status; status = urb->status;
...@@ -649,7 +624,7 @@ PIPEnsSendBulkOut( ...@@ -649,7 +624,7 @@ PIPEnsSendBulkOut(
PUSB_SEND_CONTEXT pContext PUSB_SEND_CONTEXT pContext
) )
{ {
NTSTATUS status; int status;
struct urb *pUrb; struct urb *pUrb;
...@@ -730,7 +705,7 @@ s_nsBulkOutIoCompleteWrite( ...@@ -730,7 +705,7 @@ s_nsBulkOutIoCompleteWrite(
) )
{ {
PSDevice pDevice; PSDevice pDevice;
NTSTATUS status; int status;
CONTEXT_TYPE ContextType; CONTEXT_TYPE ContextType;
unsigned long ulBufLen; unsigned long ulBufLen;
PUSB_SEND_CONTEXT pContext; PUSB_SEND_CONTEXT pContext;
......
...@@ -41,8 +41,7 @@ ...@@ -41,8 +41,7 @@
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
NTSTATUS int PIPEnsControlOut(
PIPEnsControlOut(
PSDevice pDevice, PSDevice pDevice,
BYTE byRequest, BYTE byRequest,
WORD wValue, WORD wValue,
...@@ -51,10 +50,7 @@ PIPEnsControlOut( ...@@ -51,10 +50,7 @@ PIPEnsControlOut(
PBYTE pbyBuffer PBYTE pbyBuffer
); );
int PIPEnsControlOutAsyn(
NTSTATUS
PIPEnsControlOutAsyn(
PSDevice pDevice, PSDevice pDevice,
BYTE byRequest, BYTE byRequest,
WORD wValue, WORD wValue,
...@@ -63,8 +59,7 @@ PIPEnsControlOutAsyn( ...@@ -63,8 +59,7 @@ PIPEnsControlOutAsyn(
PBYTE pbyBuffer PBYTE pbyBuffer
); );
NTSTATUS int PIPEnsControlIn(
PIPEnsControlIn(
PSDevice pDevice, PSDevice pDevice,
BYTE byRequest, BYTE byRequest,
WORD wValue, WORD wValue,
...@@ -73,24 +68,8 @@ PIPEnsControlIn( ...@@ -73,24 +68,8 @@ PIPEnsControlIn(
PBYTE pbyBuffer PBYTE pbyBuffer
); );
int PIPEnsInterruptRead(PSDevice pDevice);
int PIPEnsBulkInUsbRead(PSDevice pDevice, PRCB pRCB);
int PIPEnsSendBulkOut(PSDevice pDevice, PUSB_SEND_CONTEXT pContext);
NTSTATUS
PIPEnsInterruptRead(
PSDevice pDevice
);
NTSTATUS
PIPEnsBulkInUsbRead(
PSDevice pDevice,
PRCB pRCB
);
NTSTATUS
PIPEnsSendBulkOut(
PSDevice pDevice,
PUSB_SEND_CONTEXT pContext
);
#endif /* __USBPIPE_H__ */ #endif /* __USBPIPE_H__ */
...@@ -878,7 +878,7 @@ void vRunCommand(void *hDeviceContext) ...@@ -878,7 +878,7 @@ void vRunCommand(void *hDeviceContext)
// CARDbRadioPowerOff(pDevice); // CARDbRadioPowerOff(pDevice);
//2008-09-09<Add> BY Mike:Hot Key for Radio On/Off //2008-09-09<Add> BY Mike:Hot Key for Radio On/Off
{ {
NTSTATUS ntStatus = STATUS_SUCCESS; int ntStatus = STATUS_SUCCESS;
BYTE byTmp; BYTE byTmp;
ntStatus = CONTROLnsRequestIn(pDevice, ntStatus = CONTROLnsRequestIn(pDevice,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册