aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ath6kl/miscdrv/ar3kconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/ath6kl/miscdrv/ar3kconfig.c')
-rw-r--r--drivers/staging/ath6kl/miscdrv/ar3kconfig.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/ath6kl/miscdrv/ar3kconfig.c b/drivers/staging/ath6kl/miscdrv/ar3kconfig.c
index 354008904a6..29873ac1589 100644
--- a/drivers/staging/ath6kl/miscdrv/ar3kconfig.c
+++ b/drivers/staging/ath6kl/miscdrv/ar3kconfig.c
@@ -54,7 +54,7 @@ static int SendHCICommand(AR3K_CONFIG_INFO *pConfig,
54 int Length) 54 int Length)
55{ 55{
56 HTC_PACKET *pPacket = NULL; 56 HTC_PACKET *pPacket = NULL;
57 int status = A_OK; 57 int status = 0;
58 58
59 do { 59 do {
60 60
@@ -88,7 +88,7 @@ static int RecvHCIEvent(AR3K_CONFIG_INFO *pConfig,
88 u8 *pBuffer, 88 u8 *pBuffer,
89 int *pLength) 89 int *pLength)
90{ 90{
91 int status = A_OK; 91 int status = 0;
92 HTC_PACKET *pRecvPacket = NULL; 92 HTC_PACKET *pRecvPacket = NULL;
93 93
94 do { 94 do {
@@ -128,7 +128,7 @@ int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,
128 u8 **ppEventBuffer, 128 u8 **ppEventBuffer,
129 u8 **ppBufferToFree) 129 u8 **ppBufferToFree)
130{ 130{
131 int status = A_OK; 131 int status = 0;
132 u8 *pBuffer = NULL; 132 u8 *pBuffer = NULL;
133 u8 *pTemp; 133 u8 *pTemp;
134 int length; 134 int length;
@@ -211,7 +211,7 @@ int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,
211 211
212static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig) 212static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig)
213{ 213{
214 int status = A_OK; 214 int status = 0;
215 u8 hciBaudChangeCommand[] = {0x0c,0xfc,0x2,0,0}; 215 u8 hciBaudChangeCommand[] = {0x0c,0xfc,0x2,0,0};
216 u16 baudVal; 216 u16 baudVal;
217 u8 *pEvent = NULL; 217 u8 *pEvent = NULL;
@@ -312,7 +312,7 @@ static int AR3KExitMinBoot(AR3K_CONFIG_INFO *pConfig)
312 312
313static int AR3KConfigureSendHCIReset(AR3K_CONFIG_INFO *pConfig) 313static int AR3KConfigureSendHCIReset(AR3K_CONFIG_INFO *pConfig)
314{ 314{
315 int status = A_OK; 315 int status = 0;
316 u8 hciResetCommand[] = {0x03,0x0c,0x0}; 316 u8 hciResetCommand[] = {0x03,0x0c,0x0};
317 u8 *pEvent = NULL; 317 u8 *pEvent = NULL;
318 u8 *pBufferToFree = NULL; 318 u8 *pBufferToFree = NULL;
@@ -455,7 +455,7 @@ static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig)
455 455
456int AR3KConfigure(AR3K_CONFIG_INFO *pConfig) 456int AR3KConfigure(AR3K_CONFIG_INFO *pConfig)
457{ 457{
458 int status = A_OK; 458 int status = 0;
459 459
460 AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("AR3K Config: Configuring AR3K ...\n")); 460 AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("AR3K Config: Configuring AR3K ...\n"));
461 461
@@ -481,7 +481,7 @@ int AR3KConfigure(AR3K_CONFIG_INFO *pConfig)
481 481
482 482
483 /* Load patching and PST file if available*/ 483 /* Load patching and PST file if available*/
484 if (A_OK != AthPSInitialize(pConfig)) { 484 if (0 != AthPSInitialize(pConfig)) {
485 AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Patch Download Failed!\n")); 485 AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Patch Download Failed!\n"));
486 } 486 }
487 487
@@ -523,7 +523,7 @@ int AR3KConfigure(AR3K_CONFIG_INFO *pConfig)
523 523
524int AR3KConfigureExit(void *config) 524int AR3KConfigureExit(void *config)
525{ 525{
526 int status = A_OK; 526 int status = 0;
527 AR3K_CONFIG_INFO *pConfig = (AR3K_CONFIG_INFO *)config; 527 AR3K_CONFIG_INFO *pConfig = (AR3K_CONFIG_INFO *)config;
528 528
529 AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("AR3K Config: Cleaning up AR3K ...\n")); 529 AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("AR3K Config: Cleaning up AR3K ...\n"));