diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2010-07-22 12:57:09 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-22 15:03:21 -0400 |
commit | 771dafdc38c9158c2b9d2b05f6ddda0d08c33a17 (patch) | |
tree | d0ec18362a02d4a6b6c3b5bfb594b1d6f08695f4 /drivers/staging/rtl8192su | |
parent | 242f5a709c2fb8ee47f708d6066e350ebdbc0b23 (diff) |
staging: rtl8192su: don't use own isxdigit() method
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192su')
-rw-r--r-- | drivers/staging/rtl8192su/r8192S_Efuse.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/drivers/staging/rtl8192su/r8192S_Efuse.c b/drivers/staging/rtl8192su/r8192S_Efuse.c index 97d1c38b6fe..bbefd0f3034 100644 --- a/drivers/staging/rtl8192su/r8192S_Efuse.c +++ b/drivers/staging/rtl8192su/r8192S_Efuse.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "r8192S_Efuse.h" | 29 | #include "r8192S_Efuse.h" |
30 | 30 | ||
31 | #include <linux/types.h> | 31 | #include <linux/types.h> |
32 | #include <linux/ctype.h> | ||
32 | 33 | ||
33 | #define _POWERON_DELAY_ | 34 | #define _POWERON_DELAY_ |
34 | #define _PRE_EXECUTE_READ_CMD_ | 35 | #define _PRE_EXECUTE_READ_CMD_ |
@@ -1793,26 +1794,6 @@ EFUSE_ProgramMap(struct net_device* dev, char* pFileName,u8 TableType) | |||
1793 | 1794 | ||
1794 | #endif | 1795 | #endif |
1795 | 1796 | ||
1796 | // | ||
1797 | // Description: | ||
1798 | // Return TRUE if chTmp is represent for hex digit and | ||
1799 | // FALSE otherwise. | ||
1800 | // | ||
1801 | // | ||
1802 | bool IsHexDigit( char chTmp) | ||
1803 | { | ||
1804 | if( (chTmp >= '0' && chTmp <= '9') || | ||
1805 | (chTmp >= 'a' && chTmp <= 'f') || | ||
1806 | (chTmp >= 'A' && chTmp <= 'F') ) | ||
1807 | { | ||
1808 | return TRUE; | ||
1809 | } | ||
1810 | else | ||
1811 | { | ||
1812 | return FALSE; | ||
1813 | } | ||
1814 | } | ||
1815 | |||
1816 | /*----------------------------------------------------------------------------- | 1797 | /*----------------------------------------------------------------------------- |
1817 | * Function: efuse_ParsingMap | 1798 | * Function: efuse_ParsingMap |
1818 | * | 1799 | * |
@@ -1855,10 +1836,8 @@ efuse_ParsingMap(char* szStr,u32* pu4bVal,u32* pu4bMove) | |||
1855 | 1836 | ||
1856 | // Check if szScan is now pointer to a character for hex digit, | 1837 | // Check if szScan is now pointer to a character for hex digit, |
1857 | // if not, it means this is not a valid hex number. | 1838 | // if not, it means this is not a valid hex number. |
1858 | if(!IsHexDigit(*szScan)) | 1839 | if (!isxdigit(*szScan)) |
1859 | { | ||
1860 | return FALSE; | 1840 | return FALSE; |
1861 | } | ||
1862 | 1841 | ||
1863 | // Parse each digit. | 1842 | // Parse each digit. |
1864 | do | 1843 | do |
@@ -1867,7 +1846,7 @@ efuse_ParsingMap(char* szStr,u32* pu4bVal,u32* pu4bMove) | |||
1867 | 1846 | ||
1868 | szScan++; | 1847 | szScan++; |
1869 | (*pu4bMove)++; | 1848 | (*pu4bMove)++; |
1870 | } while(IsHexDigit(*szScan)); | 1849 | } while (isxdigit(*szScan)); |
1871 | 1850 | ||
1872 | return TRUE; | 1851 | return TRUE; |
1873 | 1852 | ||