Commit de473db1 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman

Staging: bcm: Remove typedef for stLocalSFDeleteIndication and call directly.

This patch removes typedef for
stLocalSFDeleteIndication, and
changes the name of the struct to
bcm_del_indication. In addition, any
calls to the following typedef
"stLocalSFDeleteIndication" are changed to call
the struct directly.
Signed-off-by: default avatarKevin McKinney <klmckinney1@gmail.com>
Acked-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 53176607
...@@ -1856,10 +1856,10 @@ BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, /* <Pointer ...@@ -1856,10 +1856,10 @@ BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, /* <Pointer
UINT uiSearchRuleIndex; UINT uiSearchRuleIndex;
ULONG ulSFID; ULONG ulSFID;
pLeader->PLength = sizeof(stLocalSFDeleteIndication); pLeader->PLength = sizeof(struct bcm_del_indication);
*((stLocalSFDeleteIndication *)&(Adapter->caDsxReqResp[LEADER_SIZE])) = *((stLocalSFDeleteIndication *)pstAddIndication); *((struct bcm_del_indication *)&(Adapter->caDsxReqResp[LEADER_SIZE])) = *((struct bcm_del_indication *)pstAddIndication);
ulSFID = ntohl(((stLocalSFDeleteIndication *)pstAddIndication)->u32SFID); ulSFID = ntohl(((struct bcm_del_indication *)pstAddIndication)->u32SFID);
uiSearchRuleIndex = SearchSfid(Adapter, ulSFID); uiSearchRuleIndex = SearchSfid(Adapter, ulSFID);
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "DSD - Removing connection %x", uiSearchRuleIndex); BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "DSD - Removing connection %x", uiSearchRuleIndex);
...@@ -1870,7 +1870,7 @@ BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, /* <Pointer ...@@ -1870,7 +1870,7 @@ BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, /* <Pointer
} }
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "SENDING DSD RESPONSE TO MAC"); BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "SENDING DSD RESPONSE TO MAC");
((stLocalSFDeleteIndication *)&(Adapter->caDsxReqResp[LEADER_SIZE]))->u8Type = DSD_RSP; ((struct bcm_del_indication *)&(Adapter->caDsxReqResp[LEADER_SIZE]))->u8Type = DSD_RSP;
CopyBufferToControlPacket(Adapter, (PVOID)Adapter->caDsxReqResp); CopyBufferToControlPacket(Adapter, (PVOID)Adapter->caDsxReqResp);
} }
case DSD_RSP: case DSD_RSP:
......
...@@ -323,10 +323,7 @@ typedef struct _stLocalSFDeleteRequest { ...@@ -323,10 +323,7 @@ typedef struct _stLocalSFDeleteRequest {
B_UINT32 u32SFID; /* < SFID */ B_UINT32 u32SFID; /* < SFID */
} stLocalSFDeleteRequest, *pstLocalSFDeleteRequest; } stLocalSFDeleteRequest, *pstLocalSFDeleteRequest;
/* struct bcm_del_indication {
* structure stLocalSFDeleteIndication
*/
typedef struct stLocalSFDeleteIndication {
B_UINT8 u8Type; /* < Type */ B_UINT8 u8Type; /* < Type */
B_UINT8 u8Padding; /* < Padding */ B_UINT8 u8Padding; /* < Padding */
B_UINT16 u16TID; /* < TID */ B_UINT16 u16TID; /* < TID */
...@@ -339,7 +336,7 @@ typedef struct stLocalSFDeleteIndication { ...@@ -339,7 +336,7 @@ typedef struct stLocalSFDeleteIndication {
/* brief 8bit Confirmation code */ /* brief 8bit Confirmation code */
B_UINT8 u8ConfirmationCode; /* < Confirmation code */ B_UINT8 u8ConfirmationCode; /* < Confirmation code */
B_UINT8 u8Padding1[3]; /* < 3 byte Padding */ B_UINT8 u8Padding1[3]; /* < 3 byte Padding */
} stLocalSFDeleteIndication; };
struct bcm_stim_sfhostnotify { struct bcm_stim_sfhostnotify {
B_UINT32 SFID; /* SFID of the service flow */ B_UINT32 SFID; /* SFID of the service flow */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment