Skip to content

Commit

Permalink
staging: ath6kl: Convert BDADDR_Present uses to TRUE/FALSE bugfix
Browse files Browse the repository at this point in the history
The previous uses of BDADDR_Present set the initial value to
A_ERROR (-1) when not present and A_OK (0) when present.

A later test for (!BDADDR_Present) was therefore logically inverted.
Convert the values to TRUE/FALSE and the test is now logically correct.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Vipin Mehta <vipin.mehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Joe Perches authored and Greg Kroah-Hartman committed Jan 31, 2011
1 parent 879cf16 commit 807208f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ int AthDoParsePS(A_UCHAR *srcbuffer, A_UINT32 srclen)
{
int status;
int i;
A_BOOL BDADDR_Present = A_ERROR;
A_BOOL BDADDR_Present = FALSE;

Tag_Count = 0;

Expand All @@ -689,7 +689,7 @@ int AthDoParsePS(A_UCHAR *srcbuffer, A_UINT32 srclen)
else{
for(i=0; i<Tag_Count; i++){
if(PsTagEntry[i].TagId == 1){
BDADDR_Present = A_OK;
BDADDR_Present = TRUE;
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("BD ADDR is present in Patch File \r\n"));

}
Expand Down

0 comments on commit 807208f

Please sign in to comment.