]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: vt6656: code cleanup, removed OUT definition
authorAndres More <more.andres@gmail.com>
Tue, 4 May 2010 23:40:10 +0000 (20:40 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:12 +0000 (11:36 -0700)
Remoted empty OUT define in ttype.h and its usage across the code.

Signed-off-by: Andres More <more.andres@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21 files changed:
drivers/staging/vt6656/baseband.c
drivers/staging/vt6656/baseband.h
drivers/staging/vt6656/bssdb.c
drivers/staging/vt6656/bssdb.h
drivers/staging/vt6656/card.c
drivers/staging/vt6656/channel.c
drivers/staging/vt6656/channel.h
drivers/staging/vt6656/datarate.c
drivers/staging/vt6656/datarate.h
drivers/staging/vt6656/dpc.c
drivers/staging/vt6656/key.c
drivers/staging/vt6656/key.h
drivers/staging/vt6656/rxtx.c
drivers/staging/vt6656/rxtx.h
drivers/staging/vt6656/ttype.h
drivers/staging/vt6656/usbpipe.c
drivers/staging/vt6656/usbpipe.h
drivers/staging/vt6656/wmgr.c
drivers/staging/vt6656/wmgr.h
drivers/staging/vt6656/wpa2.c
drivers/staging/vt6656/wpa2.h

index a52a2d84805c828b1ccb18e632503d9035c8ce7a..d8154f366d52d9ca5076e9bea950ec8fb39a00ce 100644 (file)
@@ -762,9 +762,9 @@ BBvCaculateParameter (
       UINT cbFrameLength,
       WORD wRate,
       BYTE byPacketType,
-    OUT PWORD pwPhyLen,
-    OUT PBYTE pbyPhySrv,
-    OUT PBYTE pbyPhySgn
+     PWORD pwPhyLen,
+     PBYTE pbyPhySrv,
+     PBYTE pbyPhySgn
     )
 {
     UINT cbBitCount;
index 9a1999b3302ce17878387a1a6fa98b8185d0852b..d54d4150dd0f6ba883be8c9538327abe327ffd56 100644 (file)
@@ -110,9 +110,9 @@ BBvCaculateParameter (
       UINT cbFrameLength,
       WORD wRate,
       BYTE byPacketType,
-    OUT PWORD pwPhyLen,
-    OUT PBYTE pbyPhySrv,
-    OUT PBYTE pbyPhySgn
+     PWORD pwPhyLen,
+     PBYTE pbyPhySrv,
+     PBYTE pbyPhySgn
     );
 
 // timer for antenna diversity
index 61841b48537e4e58bef34f4f62306cbb64d6bb4a..7cc0d9533f733b2b0c1c433c9ffbe46327fba6d4 100644 (file)
@@ -772,7 +772,7 @@ BOOL
 BSSbIsSTAInNodeDB(
      HANDLE hDeviceContext,
      PBYTE abyDstAddr,
-    OUT PUINT puNodeIndex
+     PUINT puNodeIndex
     )
 {
     PSDevice        pDevice = (PSDevice)hDeviceContext;
@@ -807,7 +807,7 @@ BSSbIsSTAInNodeDB(
 void
 BSSvCreateOneNode(
      HANDLE hDeviceContext,
-    OUT PUINT puNodeIndex
+     PUINT puNodeIndex
     )
 {
 
index 2aaa9332894eab059a6c7123ad56dee7ab445942..48b34b51402f95cae99030f2f7295ed235afb199 100644 (file)
@@ -301,13 +301,13 @@ BOOL
 BSSbIsSTAInNodeDB(
      HANDLE hDeviceContext,
      PBYTE abyDstAddr,
-    OUT PUINT puNodeIndex
+     PUINT puNodeIndex
     );
 
 void
 BSSvCreateOneNode(
      HANDLE hDeviceContext,
-    OUT PUINT puNodeIndex
+     PUINT puNodeIndex
     );
 
 void
index c7562a0ad834d2f564fb03980f90f08caa2707c5..6baf8696254bcc842291ea48d75645d0e7dbe2e8 100644 (file)
@@ -224,8 +224,8 @@ void
 CARDvCaculateOFDMRParameter (
       WORD wRate,
       BYTE byBBType,
-    OUT PBYTE pbyTxRate,
-    OUT PBYTE pbyRsvTime
+     PBYTE pbyTxRate,
+     PBYTE pbyRsvTime
     )
 {
     switch (wRate) {
index 67392b8abcfed0b9f99d5eac3722afccabdf02f3..06a213f3f4df709208d8904d4dea0c9e5a35ce73 100644 (file)
@@ -426,7 +426,7 @@ exit:
 BOOL
 CHvChannelGetList (
       UINT       uCountryCodeIdx,
-    OUT PBYTE      pbyChannelTable
+     PBYTE      pbyChannelTable
     )
 {
     if (uCountryCodeIdx >= CCODE_MAX) {
index 81b915dc5c4b88a5fd19833e664aadd5f72ed33e..26d12a0c6db8f2f31bb53e4d76a63ca2ca9c1b96 100644 (file)
@@ -51,7 +51,7 @@ BYTE    CHbyGetChannelMapping(BYTE byChannelNumber);
 BOOL
 CHvChannelGetList (
       UINT       uCountryCodeIdx,
-    OUT PBYTE      pbyChannelTable
+     PBYTE      pbyChannelTable
     );
 
 #endif  /* _REGULATE_H_ */
index 348e1ebfe4c7ab5c8ed273b576fd92ec5d4484c6..4d2880b8d839880444ca0b3b2106744d1ce2411d 100644 (file)
@@ -193,11 +193,11 @@ void RATEvParseMaxRate(
      PWLAN_IE_SUPP_RATES pItemRates,
      PWLAN_IE_SUPP_RATES pItemExtRates,
      BOOL bUpdateBasicRate,
-    OUT PWORD pwMaxBasicRate,
-    OUT PWORD pwMaxSuppRate,
-    OUT PWORD pwSuppRate,
-    OUT PBYTE pbyTopCCKRate,
-    OUT PBYTE pbyTopOFDMRate
+     PWORD pwMaxBasicRate,
+     PWORD pwMaxSuppRate,
+     PWORD pwSuppRate,
+     PBYTE pbyTopCCKRate,
+     PBYTE pbyTopOFDMRate
     )
 {
 PSDevice  pDevice = (PSDevice) pDeviceHandler;
index ae37eb63cadd405c3be3422d5925677a08424bd3..7d73a3a53beac7551af7483b3f871e6e357609d7 100644 (file)
@@ -75,11 +75,11 @@ RATEvParseMaxRate(
      PWLAN_IE_SUPP_RATES pItemRates,
      PWLAN_IE_SUPP_RATES pItemExtRates,
      BOOL bUpdateBasicRate,
-    OUT PWORD pwMaxBasicRate,
-    OUT PWORD pwMaxSuppRate,
-    OUT PWORD pwSuppRate,
-    OUT PBYTE pbyTopCCKRate,
-    OUT PBYTE pbyTopOFDMRate
+     PWORD pwMaxBasicRate,
+     PWORD pwMaxSuppRate,
+     PWORD pwSuppRate,
+     PBYTE pbyTopCCKRate,
+     PBYTE pbyTopOFDMRate
     );
 
 void
index 75be9708b6c3ba0935be580e0dbb134569c53042..b18427b39169509a92e260bad64c8e2cd7e82a27 100644 (file)
@@ -80,8 +80,8 @@ static
 void
 s_vGetDASA(
       PBYTE pbyRxBufferAddr,
-    OUT PUINT pcbHeaderSize,
-    OUT PSEthernetHeader psEthHeader
+     PUINT pcbHeaderSize,
+     PSEthernetHeader psEthHeader
     );
 
 static
@@ -92,7 +92,7 @@ s_vProcessRxMACHeader (
       UINT cbPacketSize,
       BOOL bIsWEP,
       BOOL bExtIV,
-    OUT PUINT pcbHeadSize
+     PUINT pcbHeadSize
     );
 
 static BOOL s_bAPModeRxCtl(
@@ -118,11 +118,11 @@ static BOOL s_bHandleRxEncryption(
      PBYTE        pbyFrame,
      UINT         FrameSize,
      PBYTE        pbyRsr,
-    OUT PBYTE       pbyNewRsr,
-    OUT PSKeyItem   *pKeyOut,
+     PBYTE       pbyNewRsr,
+     PSKeyItem   * pKeyOut,
     int *       pbExtIV,
-    OUT PWORD       pwRxTSC15_0,
-    OUT PDWORD      pdwRxTSC47_16
+     PWORD       pwRxTSC15_0,
+     PDWORD      pdwRxTSC47_16
     );
 
 static BOOL s_bHostWepRxEncryption(
@@ -133,10 +133,10 @@ static BOOL s_bHostWepRxEncryption(
      PBYTE        pbyRsr,
      BOOL         bOnFly,
      PSKeyItem    pKey,
-    OUT PBYTE       pbyNewRsr,
+     PBYTE       pbyNewRsr,
     int *       pbExtIV,
-    OUT PWORD       pwRxTSC15_0,
-    OUT PDWORD      pdwRxTSC47_16
+     PWORD       pwRxTSC15_0,
+     PDWORD      pdwRxTSC47_16
 
     );
 
@@ -167,7 +167,7 @@ s_vProcessRxMACHeader (
       UINT cbPacketSize,
       BOOL bIsWEP,
       BOOL bExtIV,
-    OUT PUINT pcbHeadSize
+     PUINT pcbHeadSize
     )
 {
     PBYTE           pbyRxBuffer;
@@ -262,8 +262,8 @@ static
 void
 s_vGetDASA (
       PBYTE pbyRxBufferAddr,
-    OUT PUINT pcbHeaderSize,
-    OUT PSEthernetHeader psEthHeader
+     PUINT pcbHeaderSize,
+     PSEthernetHeader psEthHeader
     )
 {
        UINT            cbHeaderSize = 0;
@@ -1147,11 +1147,11 @@ static BOOL s_bHandleRxEncryption (
      PBYTE        pbyFrame,
      UINT         FrameSize,
      PBYTE        pbyRsr,
-    OUT PBYTE       pbyNewRsr,
-    OUT PSKeyItem   *pKeyOut,
+     PBYTE       pbyNewRsr,
+     PSKeyItem   * pKeyOut,
     int *       pbExtIV,
-    OUT PWORD       pwRxTSC15_0,
-    OUT PDWORD      pdwRxTSC47_16
+     PWORD       pwRxTSC15_0,
+     PDWORD      pdwRxTSC47_16
     )
 {
     UINT            PayloadLen = FrameSize;
@@ -1295,10 +1295,10 @@ static BOOL s_bHostWepRxEncryption (
      PBYTE        pbyRsr,
      BOOL         bOnFly,
      PSKeyItem    pKey,
-    OUT PBYTE       pbyNewRsr,
+     PBYTE       pbyNewRsr,
     int *       pbExtIV,
-    OUT PWORD       pwRxTSC15_0,
-    OUT PDWORD      pdwRxTSC47_16
+     PWORD       pwRxTSC15_0,
+     PDWORD      pdwRxTSC47_16
     )
 {
     PSMgmtObject    pMgmt = &(pDevice->sMgmtObj);
index 338ec087f73721f6c53aac2db3485590ee2b0410..7ff420d07c18b07b7de1a42d548fac1975c18693 100644 (file)
@@ -164,12 +164,8 @@ void KeyvInitTable(void *pDeviceHandler, PSKeyManagement pTable)
  * Return Value: TRUE if found otherwise FALSE
  *
  */
-BOOL KeybGetKey (
-      PSKeyManagement pTable,
-      PBYTE           pbyBSSID,
-      DWORD           dwKeyIndex,
-    OUT PSKeyItem       *pKey
-    )
+BOOL KeybGetKey(PSKeyManagement pTable, PBYTE pbyBSSID, DWORD dwKeyIndex,
+               PSKeyItem *pKey)
 {
     int i;
 
@@ -563,12 +559,8 @@ void KeyvRemoveAllWEPKey(
  * Return Value: TRUE if found otherwise FALSE
  *
  */
-BOOL KeybGetTransmitKey (
-      PSKeyManagement pTable,
-      PBYTE           pbyBSSID,
-      DWORD           dwKeyType,
-    OUT PSKeyItem       *pKey
-    )
+BOOL KeybGetTransmitKey(PSKeyManagement pTable, PBYTE pbyBSSID, DWORD dwKeyType,
+                       PSKeyItem *pKey)
 {
     int i, ii;
 
@@ -643,10 +635,7 @@ BOOL KeybGetTransmitKey (
  * Return Value: TRUE if found otherwise FALSE
  *
  */
-BOOL KeybCheckPairewiseKey (
-      PSKeyManagement pTable,
-    OUT PSKeyItem       *pKey
-    )
+BOOL KeybCheckPairewiseKey(PSKeyManagement pTable, PSKeyItem *pKey)
 {
     int i;
 
index a10878200fa7c5f48d8f3508dbd5d19bab5e6785..11fc41edd094054357929daf2507eaa1176c81db 100644 (file)
@@ -99,12 +99,8 @@ typedef struct tagSKeyManagement
 
 void KeyvInitTable(void *pDeviceHandler, PSKeyManagement pTable);
 
-BOOL KeybGetKey(
-      PSKeyManagement pTable,
-      PBYTE           pbyBSSID,
-      DWORD           dwKeyIndex,
-    OUT PSKeyItem       *pKey
-    );
+BOOL KeybGetKey(PSKeyManagement pTable, PBYTE pbyBSSID, DWORD dwKeyIndex,
+               PSKeyItem *pKey);
 
 BOOL KeybSetKey(
     void *pDeviceHandler,
@@ -141,17 +137,10 @@ void KeyvRemoveAllWEPKey(
     PSKeyManagement pTable
     );
 
-BOOL KeybGetTransmitKey(
-      PSKeyManagement pTable,
-      PBYTE           pbyBSSID,
-      DWORD           dwKeyType,
-    OUT PSKeyItem       *pKey
-    );
+BOOL KeybGetTransmitKey(PSKeyManagement pTable,        PBYTE pbyBSSID, DWORD dwKeyType,
+                       PSKeyItem *pKey);
 
-BOOL KeybCheckPairewiseKey(
-      PSKeyManagement pTable,
-    OUT PSKeyItem       *pKey
-    );
+BOOL KeybCheckPairewiseKey(PSKeyManagement pTable, PSKeyItem *pKey);
 
 BOOL KeybSetDefaultKey(
     void *pDeviceHandler,
index 9ddb7e1c25467e2ea4fe822c3575b5d2e5b88f27..b9f67882199d48d254f020c92d2e20b644ef9c11 100644 (file)
@@ -187,7 +187,7 @@ s_vFillTxKey(
       PSKeyItem  pTransmitKey,
       PBYTE      pbyHdrBuf,
       WORD       wPayloadLen,
-    OUT PBYTE      pMICHDR
+     PBYTE      pMICHDR
     );
 
 static
@@ -339,7 +339,7 @@ s_vFillTxKey (
       PSKeyItem  pTransmitKey,
       PBYTE      pbyHdrBuf,
       WORD       wPayloadLen,
-    OUT PBYTE      pMICHDR
+     PBYTE      pMICHDR
     )
 {
     PDWORD          pdwIV = (PDWORD) pbyIVHead;
@@ -1439,8 +1439,8 @@ s_bPacketToWirelessUsb(
       PSKeyItem        pTransmitKey,
       UINT             uNodeIndex,
       WORD             wCurrentRate,
-    OUT UINT             *pcbHeaderLen,
-    OUT UINT             *pcbTotalLen
+     UINT             *pcbHeaderLen,
+     UINT             *pcbTotalLen
     )
 {
     PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
index 026943058ac28535322054112edc84c752cf8f28..64df4a3550d6b7f20c0d55da27582193d3ca0047 100644 (file)
@@ -678,8 +678,8 @@ bPacketToWirelessUsb(
       PSKeyItem        pTransmitKey,
       UINT             uNodeIndex,
       WORD             wCurrentRate,
-    OUT UINT             *pcbHeaderLen,
-    OUT UINT             *pcbTotalLen
+     UINT             *pcbHeaderLen,
+     UINT             *pcbTotalLen
     );
 
 void vDMA0_tx_80211(PSDevice  pDevice, struct sk_buff *skb);
index 53a50ad4e28f3a507c938f93028db94f8630f842..692b63e4dabf108bdb955656fcf659ff212bc4b4 100644 (file)
 
 /******* Common definitions and typedefs ***********************************/
 
-#ifndef OUT
-#define OUT
-#endif
-
 //2007-0115-05<Add>by MikeLiu
 #ifndef TxInSleep
 #define TxInSleep
index 7c325728b836dcf52e3006d1ed5c1cbaaa3487e1..ce71f18afd8108a52c1aa3b0252d49bc55153303 100644 (file)
@@ -229,7 +229,7 @@ PIPEnsControlIn(
      WORD         wValue,
      WORD         wIndex,
      WORD         wLength,
-     OUT  PBYTE   pbyBuffer
+       PBYTE   pbyBuffer
     )
 {
     NTSTATUS            ntStatus = 0;
index ee86d3716dc323edb4f279ef913d75196078ce55..f852b39027a51e4cac3012769d2e6351a756bca2 100644 (file)
@@ -70,7 +70,7 @@ PIPEnsControlIn(
      WORD         wValue,
      WORD         wIndex,
      WORD         wLength,
-     OUT  PBYTE   pbyBuffer
+       PBYTE   pbyBuffer
     );
 
 
index 994022aa0d6211e702a97acba73130f39c27d3d8..1824551bcc3c03feea247aa5b90299a519272807 100644 (file)
@@ -312,7 +312,7 @@ s_vMgrSynchBSS (
      PSDevice      pDevice,
      UINT          uBSSMode,
      PKnownBSS     pCurr,
-    OUT PCMD_STATUS  pStatus
+     PCMD_STATUS  pStatus
     );
 
 
@@ -320,8 +320,8 @@ static BOOL
 s_bCipherMatch (
      PKnownBSS                        pBSSNode,
      NDIS_802_11_ENCRYPTION_STATUS    EncStatus,
-    OUT PBYTE                           pbyCCSPK,
-    OUT PBYTE                           pbyCCSGK
+     PBYTE                           pbyCCSPK,
+     PBYTE                           pbyCCSGK
     );
 
  static void  Encyption_Rebuild(
@@ -419,7 +419,7 @@ void
 vMgrAssocBeginSta(
       HANDLE hDeviceContext,
       PSMgmtObject pMgmt,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     )
 {
     PSDevice             pDevice = (PSDevice)hDeviceContext;
@@ -495,7 +495,7 @@ void
 vMgrReAssocBeginSta(
       HANDLE hDeviceContext,
       PSMgmtObject pMgmt,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     )
 {
     PSDevice             pDevice = (PSDevice)hDeviceContext;
@@ -576,7 +576,7 @@ vMgrDisassocBeginSta(
       PSMgmtObject pMgmt,
       PBYTE  abyDestAddress,
       WORD    wReason,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     )
 {
     PSDevice            pDevice = (PSDevice)hDeviceContext;
@@ -1106,7 +1106,7 @@ void
 vMgrAuthenBeginSta(
       HANDLE hDeviceContext,
       PSMgmtObject  pMgmt,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     )
 {
     PSDevice     pDevice = (PSDevice)hDeviceContext;
@@ -1166,7 +1166,7 @@ vMgrDeAuthenBeginSta(
       PSMgmtObject  pMgmt,
       PBYTE  abyDestAddress,
       WORD    wReason,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     )
 {
     PSDevice            pDevice = (PSDevice)hDeviceContext;
@@ -2358,7 +2358,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE)
 void
 vMgrCreateOwnIBSS(
       HANDLE hDeviceContext,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     )
 {
     PSDevice            pDevice = (PSDevice)hDeviceContext;
@@ -2633,7 +2633,7 @@ vMgrCreateOwnIBSS(
 void
 vMgrJoinBSSBegin(
       HANDLE hDeviceContext,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     )
 {
 
@@ -2967,7 +2967,7 @@ s_vMgrSynchBSS (
      PSDevice      pDevice,
      UINT          uBSSMode,
      PKnownBSS     pCurr,
-    OUT PCMD_STATUS  pStatus
+     PCMD_STATUS  pStatus
     )
 {
     PSMgmtObject  pMgmt = &(pDevice->sMgmtObj);
@@ -4810,8 +4810,8 @@ static BOOL
 s_bCipherMatch (
      PKnownBSS                        pBSSNode,
      NDIS_802_11_ENCRYPTION_STATUS    EncStatus,
-    OUT PBYTE                           pbyCCSPK,
-    OUT PBYTE                           pbyCCSGK
+     PBYTE                           pbyCCSPK,
+     PBYTE                           pbyCCSGK
     )
 {
     BYTE byMulticastCipher = KEY_CTL_INVALID;
index 02ecec92babb6d545f3f38317ad7515e3171c59e..0eda12afd26b9a6bbc779933e38fec7f25f2d542 100644 (file)
@@ -417,14 +417,14 @@ void
 vMgrAssocBeginSta(
       HANDLE hDeviceContext,
       PSMgmtObject pMgmt,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     );
 
 void
 vMgrReAssocBeginSta(
       HANDLE hDeviceContext,
       PSMgmtObject pMgmt,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     );
 
 void
@@ -433,26 +433,26 @@ vMgrDisassocBeginSta(
       PSMgmtObject pMgmt,
       PBYTE  abyDestAddress,
       WORD    wReason,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     );
 
 void
 vMgrAuthenBeginSta(
       HANDLE hDeviceContext,
       PSMgmtObject pMgmt,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     );
 
 void
 vMgrCreateOwnIBSS(
       HANDLE hDeviceContext,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     );
 
 void
 vMgrJoinBSSBegin(
       HANDLE hDeviceContext,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     );
 
 void
@@ -466,7 +466,7 @@ vMgrRxManagePacket(
 void
 vMgrScanBegin(
       HANDLE hDeviceContext,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     );
 */
 
@@ -476,7 +476,7 @@ vMgrDeAuthenBeginSta(
       PSMgmtObject  pMgmt,
       PBYTE   abyDestAddress,
       WORD    wReason,
-    OUT PCMD_STATUS pStatus
+     PCMD_STATUS pStatus
     );
 
 BOOL
index 73bfb500d45b6ebd44fb433323ccfb7a6bd6b881..9bd6bf5bf37cc76fe686824df3367ad3769a7e34 100644 (file)
@@ -262,7 +262,7 @@ WPA2vParseRSN (
 -*/
 UINT
 WPA2uSetIEs(void *pMgmtHandle,
-    OUT PWLAN_IE_RSN pRSNIEs
+     PWLAN_IE_RSN pRSNIEs
     )
 {
     PSMgmtObject    pMgmt = (PSMgmtObject) pMgmtHandle;
index 367aecee8b7c740274793bd4e50da1c0566df7d7..79305a79b9da216ef3a84655e3602f02ae241e6e 100644 (file)
@@ -72,7 +72,7 @@ WPA2vParseRSN (
 UINT
 WPA2uSetIEs(
        void *pMgmtHandle,
-    OUT PWLAN_IE_RSN pRSNIEs
+     PWLAN_IE_RSN pRSNIEs
     );
 
 #endif /* __WPA2_H__ */