Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205943
b: refs/heads/master
c: 771dafd
h: refs/heads/master
i:
  205941: 04ac4b7
  205939: 0138772
  205935: e5fdb88
v: v3
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent 0e09299 commit 40ad6a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 242f5a709c2fb8ee47f708d6066e350ebdbc0b23
refs/heads/master: 771dafdc38c9158c2b9d2b05f6ddda0d08c33a17
27 changes: 3 additions & 24 deletions trunk/drivers/staging/rtl8192su/r8192S_Efuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "r8192S_Efuse.h"

#include <linux/types.h>
#include <linux/ctype.h>

#define _POWERON_DELAY_
#define _PRE_EXECUTE_READ_CMD_
Expand Down Expand Up @@ -1793,26 +1794,6 @@ EFUSE_ProgramMap(struct net_device* dev, char* pFileName,u8 TableType)

#endif

//
// Description:
// Return TRUE if chTmp is represent for hex digit and
// FALSE otherwise.
//
//
bool IsHexDigit( char chTmp)
{
if( (chTmp >= '0' && chTmp <= '9') ||
(chTmp >= 'a' && chTmp <= 'f') ||
(chTmp >= 'A' && chTmp <= 'F') )
{
return TRUE;
}
else
{
return FALSE;
}
}

/*-----------------------------------------------------------------------------
* Function: efuse_ParsingMap
*
Expand Down Expand Up @@ -1855,10 +1836,8 @@ efuse_ParsingMap(char* szStr,u32* pu4bVal,u32* pu4bMove)

// Check if szScan is now pointer to a character for hex digit,
// if not, it means this is not a valid hex number.
if(!IsHexDigit(*szScan))
{
if (!isxdigit(*szScan))
return FALSE;
}

// Parse each digit.
do
Expand All @@ -1867,7 +1846,7 @@ efuse_ParsingMap(char* szStr,u32* pu4bVal,u32* pu4bMove)

szScan++;
(*pu4bMove)++;
} while(IsHexDigit(*szScan));
} while (isxdigit(*szScan));

return TRUE;

Expand Down

0 comments on commit 40ad6a9

Please sign in to comment.