diff options
author | Kevin McKinney <klmckinney1@gmail.com> | 2012-09-23 23:07:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-26 12:31:52 -0400 |
commit | da529f0ffb03b90f8d6a462f2681e72f4da7032a (patch) | |
tree | bd93133adb5438f5587a2be7407de85dabf46377 | |
parent | ec5bb992648881f1721a555f9a4652e60e17880f (diff) |
Staging: bcm: Remove typedef for _stLocalSFAddIndication and call directly.
This patch removes typedef for _stLocalSFAddIndication,
and changes the name of the struct to
bcm_add_indication. In addition, any
calls to typedefs "stLocalSFAddIndication,
*pstLocalSFAddIndication, stLocalSFChangeRequest,
*pstLocalSFChangeRequest, stLocalSFChangeIndication,
or *pstLocalSFChangeIndication " 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>
-rw-r--r-- | drivers/staging/bcm/CmHost.c | 14 | ||||
-rw-r--r-- | drivers/staging/bcm/cntrl_SignalingInterface.h | 18 |
2 files changed, 9 insertions, 23 deletions
diff --git a/drivers/staging/bcm/CmHost.c b/drivers/staging/bcm/CmHost.c index fd2780d41e9a..e1a93481562d 100644 --- a/drivers/staging/bcm/CmHost.c +++ b/drivers/staging/bcm/CmHost.c | |||
@@ -1334,7 +1334,7 @@ static ULONG StoreSFParam(struct bcm_mini_adapter *Adapter, PUCHAR pucSrcBuffer, | |||
1334 | ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer, UINT *puBufferLength) | 1334 | ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer, UINT *puBufferLength) |
1335 | { | 1335 | { |
1336 | stLocalSFAddIndicationAlt *pstAddIndicationAlt = NULL; | 1336 | stLocalSFAddIndicationAlt *pstAddIndicationAlt = NULL; |
1337 | stLocalSFAddIndication *pstAddIndication = NULL; | 1337 | struct bcm_add_indication *pstAddIndication = NULL; |
1338 | struct bcm_del_request *pstDeletionRequest; | 1338 | struct bcm_del_request *pstDeletionRequest; |
1339 | UINT uiSearchRuleIndex; | 1339 | UINT uiSearchRuleIndex; |
1340 | ULONG ulSFID; | 1340 | ULONG ulSFID; |
@@ -1365,7 +1365,7 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu | |||
1365 | } | 1365 | } |
1366 | /* For DSA_REQ, only up to "psfAuthorizedSet" parameter should be accessed by driver! */ | 1366 | /* For DSA_REQ, only up to "psfAuthorizedSet" parameter should be accessed by driver! */ |
1367 | 1367 | ||
1368 | pstAddIndication = kmalloc(sizeof(*pstAddIndication), GFP_KERNEL); | 1368 | pstAddIndication = kmalloc(sizeof(struct bcm_add_indication), GFP_KERNEL); |
1369 | if (pstAddIndication == NULL) | 1369 | if (pstAddIndication == NULL) |
1370 | return 0; | 1370 | return 0; |
1371 | 1371 | ||
@@ -1439,8 +1439,8 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu | |||
1439 | 1439 | ||
1440 | pstAddIndication->psfActiveSet = (stServiceFlowParamSI *)ntohl((ULONG)pstAddIndication->psfActiveSet); | 1440 | pstAddIndication->psfActiveSet = (stServiceFlowParamSI *)ntohl((ULONG)pstAddIndication->psfActiveSet); |
1441 | 1441 | ||
1442 | (*puBufferLength) = sizeof(stLocalSFAddIndication); | 1442 | (*puBufferLength) = sizeof(struct bcm_add_indication); |
1443 | *(stLocalSFAddIndication *)pvBuffer = *pstAddIndication; | 1443 | *(struct bcm_add_indication *)pvBuffer = *pstAddIndication; |
1444 | kfree(pstAddIndication); | 1444 | kfree(pstAddIndication); |
1445 | return 1; | 1445 | return 1; |
1446 | } | 1446 | } |
@@ -1449,10 +1449,10 @@ static inline stLocalSFAddIndicationAlt | |||
1449 | *RestoreCmControlResponseMessage(register struct bcm_mini_adapter *Adapter, register PVOID pvBuffer) | 1449 | *RestoreCmControlResponseMessage(register struct bcm_mini_adapter *Adapter, register PVOID pvBuffer) |
1450 | { | 1450 | { |
1451 | ULONG ulStatus = 0; | 1451 | ULONG ulStatus = 0; |
1452 | stLocalSFAddIndication *pstAddIndication = NULL; | 1452 | struct bcm_add_indication *pstAddIndication = NULL; |
1453 | stLocalSFAddIndicationAlt *pstAddIndicationDest = NULL; | 1453 | stLocalSFAddIndicationAlt *pstAddIndicationDest = NULL; |
1454 | 1454 | ||
1455 | pstAddIndication = (stLocalSFAddIndication *)(pvBuffer); | 1455 | pstAddIndication = (struct bcm_add_indication *)(pvBuffer); |
1456 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "=====>"); | 1456 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "=====>"); |
1457 | if ((pstAddIndication->u8Type == DSD_REQ) || | 1457 | if ((pstAddIndication->u8Type == DSD_REQ) || |
1458 | (pstAddIndication->u8Type == DSD_RSP) || | 1458 | (pstAddIndication->u8Type == DSD_RSP) || |
@@ -1644,7 +1644,7 @@ BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, /* <Pointer | |||
1644 | */ | 1644 | */ |
1645 | pstAddIndication = RestoreCmControlResponseMessage(Adapter, pvBuffer); | 1645 | pstAddIndication = RestoreCmControlResponseMessage(Adapter, pvBuffer); |
1646 | if (pstAddIndication == NULL) { | 1646 | if (pstAddIndication == NULL) { |
1647 | ClearTargetDSXBuffer(Adapter, ((stLocalSFAddIndication *)pvBuffer)->u16TID, FALSE); | 1647 | ClearTargetDSXBuffer(Adapter, ((struct bcm_add_indication *)pvBuffer)->u16TID, FALSE); |
1648 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Error in restoring Service Flow param structure from DSx message"); | 1648 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Error in restoring Service Flow param structure from DSx message"); |
1649 | return FALSE; | 1649 | return FALSE; |
1650 | } | 1650 | } |
diff --git a/drivers/staging/bcm/cntrl_SignalingInterface.h b/drivers/staging/bcm/cntrl_SignalingInterface.h index 0f9ecc04688d..fbdc2316d997 100644 --- a/drivers/staging/bcm/cntrl_SignalingInterface.h +++ b/drivers/staging/bcm/cntrl_SignalingInterface.h | |||
@@ -277,10 +277,7 @@ typedef struct _stLocalSFAddRequest { | |||
277 | 277 | ||
278 | } stLocalSFAddRequest, *pstLocalSFAddRequest; | 278 | } stLocalSFAddRequest, *pstLocalSFAddRequest; |
279 | 279 | ||
280 | /* | 280 | struct bcm_add_indication { |
281 | * structure stLocalSFAddIndication | ||
282 | */ | ||
283 | typedef struct _stLocalSFAddIndication { | ||
284 | B_UINT8 u8Type; /* < Type */ | 281 | B_UINT8 u8Type; /* < Type */ |
285 | B_UINT8 eConnectionDir; /* < Connection Direction */ | 282 | B_UINT8 eConnectionDir; /* < Connection Direction */ |
286 | /* brief 16 bit TID */ | 283 | /* brief 16 bit TID */ |
@@ -299,18 +296,7 @@ typedef struct _stLocalSFAddIndication { | |||
299 | B_UINT8 u8CC; /* <Confirmation Code */ | 296 | B_UINT8 u8CC; /* <Confirmation Code */ |
300 | B_UINT8 u8Padd; /* < 8-bit Padding */ | 297 | B_UINT8 u8Padd; /* < 8-bit Padding */ |
301 | B_UINT16 u16Padd; /* < 16 bit Padding */ | 298 | B_UINT16 u16Padd; /* < 16 bit Padding */ |
302 | 299 | }; | |
303 | } stLocalSFAddIndication; | ||
304 | |||
305 | typedef struct _stLocalSFAddIndication *pstLocalSFAddIndication; | ||
306 | /* | ||
307 | * structure stLocalSFChangeRequest is same as structure stLocalSFAddIndication | ||
308 | */ | ||
309 | typedef struct _stLocalSFAddIndication stLocalSFChangeRequest, *pstLocalSFChangeRequest; | ||
310 | /* | ||
311 | * structure stLocalSFChangeIndication is same as structure stLocalSFAddIndication | ||
312 | */ | ||
313 | typedef struct _stLocalSFAddIndication stLocalSFChangeIndication, *pstLocalSFChangeIndication; | ||
314 | 300 | ||
315 | struct bcm_del_request { | 301 | struct bcm_del_request { |
316 | B_UINT8 u8Type; /* < Type */ | 302 | B_UINT8 u8Type; /* < Type */ |