Staging: bcm: Remove typedef for _stLocalSFAddRequest and call directly.
This patch removes typedef for _stLocalSFAddRequest, and changes the name of the struct to bcm_add_request. In addition, any calls to typedefs "stLocalSFAddRequest or *pstLocalSFAddRequest" are changed to call the struct directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
da529f0ffb
commit
fc1ad16277
2 changed files with 5 additions and 9 deletions
|
@ -1387,7 +1387,7 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu
|
||||||
pstAddIndication->psfAuthorizedSet = (stServiceFlowParamSI *)ntohl((ULONG)pstAddIndication->psfAuthorizedSet);
|
pstAddIndication->psfAuthorizedSet = (stServiceFlowParamSI *)ntohl((ULONG)pstAddIndication->psfAuthorizedSet);
|
||||||
|
|
||||||
if (pstAddIndicationAlt->u8Type == DSA_REQ) {
|
if (pstAddIndicationAlt->u8Type == DSA_REQ) {
|
||||||
stLocalSFAddRequest AddRequest;
|
struct bcm_add_request AddRequest;
|
||||||
|
|
||||||
AddRequest.u8Type = pstAddIndicationAlt->u8Type;
|
AddRequest.u8Type = pstAddIndicationAlt->u8Type;
|
||||||
AddRequest.eConnectionDir = pstAddIndicationAlt->u8Direction;
|
AddRequest.eConnectionDir = pstAddIndicationAlt->u8Direction;
|
||||||
|
@ -1395,8 +1395,8 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu
|
||||||
AddRequest.u16CID = pstAddIndicationAlt->u16CID;
|
AddRequest.u16CID = pstAddIndicationAlt->u16CID;
|
||||||
AddRequest.u16VCID = pstAddIndicationAlt->u16VCID;
|
AddRequest.u16VCID = pstAddIndicationAlt->u16VCID;
|
||||||
AddRequest.psfParameterSet = pstAddIndication->psfAuthorizedSet;
|
AddRequest.psfParameterSet = pstAddIndication->psfAuthorizedSet;
|
||||||
(*puBufferLength) = sizeof(stLocalSFAddRequest);
|
(*puBufferLength) = sizeof(struct bcm_add_request);
|
||||||
memcpy(pvBuffer, &AddRequest, sizeof(stLocalSFAddRequest));
|
memcpy(pvBuffer, &AddRequest, sizeof(struct bcm_add_request));
|
||||||
kfree(pstAddIndication);
|
kfree(pstAddIndication);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -260,10 +260,7 @@ typedef struct _stServiceFlowParamSI {
|
||||||
} stServiceFlowParamSI, *pstServiceFlowParamSI;
|
} stServiceFlowParamSI, *pstServiceFlowParamSI;
|
||||||
typedef stServiceFlowParamSI CServiceFlowParamSI;
|
typedef stServiceFlowParamSI CServiceFlowParamSI;
|
||||||
|
|
||||||
/*
|
struct bcm_add_request {
|
||||||
* structure stLocalSFAddRequest
|
|
||||||
*/
|
|
||||||
typedef struct _stLocalSFAddRequest {
|
|
||||||
B_UINT8 u8Type; /* < Type */
|
B_UINT8 u8Type; /* < Type */
|
||||||
B_UINT8 eConnectionDir; /* < Connection direction */
|
B_UINT8 eConnectionDir; /* < Connection direction */
|
||||||
/* brief 16 bit TID */
|
/* brief 16 bit TID */
|
||||||
|
@ -274,8 +271,7 @@ typedef struct _stLocalSFAddRequest {
|
||||||
B_UINT16 u16VCID; /* < 16bit VCID */
|
B_UINT16 u16VCID; /* < 16bit VCID */
|
||||||
/* brief structure ParameterSet */
|
/* brief structure ParameterSet */
|
||||||
stServiceFlowParamSI *psfParameterSet; /* < structure ParameterSet */
|
stServiceFlowParamSI *psfParameterSet; /* < structure ParameterSet */
|
||||||
|
};
|
||||||
} stLocalSFAddRequest, *pstLocalSFAddRequest;
|
|
||||||
|
|
||||||
struct bcm_add_indication {
|
struct bcm_add_indication {
|
||||||
B_UINT8 u8Type; /* < Type */
|
B_UINT8 u8Type; /* < Type */
|
||||||
|
|
Loading…
Add table
Reference in a new issue