Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: winbond: fix brace, comments and space coding style issue in mlmetxrx.c

This is a patch to the mlmetxrx.c file that fixed up a brace, comments
and space Errors found by the checkpatch.pl tool.

Signed-off-by: Ruslan Pisarev <ruslan@rpisarev.org.ua>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Ruslan Pisarev and committed by
Greg Kroah-Hartman
4095aef6 25e47dfc

+31 -31
+31 -31
drivers/staging/winbond/mlmetxrx.c
··· 1 - //============================================================================ 2 - // Module Name: 3 - // MLMETxRx.C 4 - // 5 - // Description: 6 - // The interface between MDS (MAC Data Service) and MLME. 7 - // 8 - // Revision History: 9 - // -------------------------------------------------------------------------- 10 - // 200209 UN20 Jennifer Xu 11 - // Initial Release 12 - // 20021108 PD43 Austin Liu 13 - // 20030117 PD43 Austin Liu 14 - // Deleted MLMEReturnPacket and MLMEProcThread() 15 - // 16 - // Copyright (c) 1996-2002 Winbond Electronics Corp. All Rights Reserved. 17 - //============================================================================ 1 + /* ============================================================================ 2 + Module Name: 3 + MLMETxRx.C 4 + 5 + Description: 6 + The interface between MDS (MAC Data Service) and MLME. 7 + 8 + Revision History: 9 + -------------------------------------------------------------------------- 10 + 200209 UN20 Jennifer Xu 11 + Initial Release 12 + 20021108 PD43 Austin Liu 13 + 20030117 PD43 Austin Liu 14 + Deleted MLMEReturnPacket and MLMEProcThread() 15 + 16 + Copyright (c) 1996-2002 Winbond Electronics Corp. All Rights Reserved. 17 + ============================================================================ */ 18 18 #include "sysdef.h" 19 19 20 20 #include "mds_f.h" 21 21 22 - //============================================================================= 23 - u8 MLMESendFrame(struct wbsoft_priv * adapter, u8 *pMMPDU, u16 len, u8 DataType) 22 + /* ============================================================================= */ 23 + u8 MLMESendFrame(struct wbsoft_priv *adapter, u8 *pMMPDU, u16 len, u8 DataType) 24 24 /* DataType : FRAME_TYPE_802_11_MANAGEMENT, FRAME_TYPE_802_11_MANAGEMENT_CHALLENGE, 25 25 FRAME_TYPE_802_11_DATA */ 26 26 { ··· 30 30 } 31 31 adapter->sMlmeFrame.IsInUsed = PACKET_COME_FROM_MLME; 32 32 33 - // Keep information for sending 33 + /* Keep information for sending */ 34 34 adapter->sMlmeFrame.pMMPDU = pMMPDU; 35 35 adapter->sMlmeFrame.DataType = DataType; 36 - // len must be the last setting due to QUERY_SIZE_SECOND of Mds 36 + /* len must be the last setting due to QUERY_SIZE_SECOND of Mds */ 37 37 adapter->sMlmeFrame.len = len; 38 38 adapter->sMlmeFrame.wNumTxMMPDU++; 39 39 40 - // H/W will enter power save by set the register. S/W don't send null frame 41 - //with PWRMgt bit enbled to enter power save now. 40 + /* H/W will enter power save by set the register. S/W don't send null frame 41 + with PWRMgt bit enbled to enter power save now. */ 42 42 43 - // Transmit NDIS packet 43 + /* Transmit NDIS packet */ 44 44 Mds_Tx(adapter); 45 45 return true; 46 46 } ··· 60 60 { 61 61 int i; 62 62 63 - // Reclaim the data buffer 63 + /* Reclaim the data buffer */ 64 64 for (i = 0; i < MAX_NUM_TX_MMPDU; i++) { 65 65 if (pData == (s8 *)&(adapter->sMlmeFrame.TxMMPDU[i])) 66 66 break; ··· 68 68 if (adapter->sMlmeFrame.TxMMPDUInUse[i]) 69 69 adapter->sMlmeFrame.TxMMPDUInUse[i] = false; 70 70 else { 71 - // Something wrong 72 - // PD43 Add debug code here??? 71 + /* Something wrong 72 + PD43 Add debug code here??? */ 73 73 } 74 74 } 75 75 76 76 void 77 - MLME_SendComplete(struct wbsoft_priv * adapter, u8 PacketID, unsigned char SendOK) 77 + MLME_SendComplete(struct wbsoft_priv *adapter, u8 PacketID, unsigned char SendOK) 78 78 { 79 79 MLME_TXCALLBACK TxCallback; 80 80 81 - // Reclaim the data buffer 81 + /* Reclaim the data buffer */ 82 82 adapter->sMlmeFrame.len = 0; 83 - MLMEfreeMMPDUBuffer( adapter, adapter->sMlmeFrame.pMMPDU ); 83 + MLMEfreeMMPDUBuffer(adapter, adapter->sMlmeFrame.pMMPDU); 84 84 85 85 86 86 TxCallback.bResult = MLME_SUCCESS; 87 87 88 - // Return resource 88 + /* Return resource */ 89 89 adapter->sMlmeFrame.IsInUsed = PACKET_FREE_TO_USE; 90 90 } 91 91