ide: use the common ascii hex helpers
PATCH 3/12 ide: use the common ascii hex helpers
Signed-off-by Harvey Harrison <[email protected]>
--- drivers/ide/ide.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/ide/ide.c +1 -2
@@ -789,7 +789,6 @@ static int __init stridx (const char *s, char c)static int __init match_parm (char *s,const char *keywords[],int vals[],int max_vals) {static const char *decimal ="0123456789" ; -static const char *hex ="0123456789abcdef" ;int i, n;if (*s++ =='=' ) {
@@ -814,7 +813,7 @@ static int __init match_parm (char *s, const char *keywords[], int vals[], int mwhile ((i =stridx (decimal, *++s)) >=0 ) vals[n] = (vals[n] *10 ) + i;if (*s =='x' && !vals[n]) { -while ((i =stridx (hex, *++s)) >=0 ) +while ((i =stridx (hex_asc, *++s)) >=0 ) vals[n] = (vals[n] *0x10 ) + i; }if (++n == max_vals)
Signature · 1 line
1.5.5.1.404.g981f6
Quoted 1 line · Harvey Harrison
Signed-off-by Harvey Harrison <[email protected]>
Quoted 4 lines · On Wed, 14 May 2008 22:48:22 +0200 Bartlomiej Zolnierkiewicz…
Quoted 1 line · Harvey Harrison
Signed-off-by Harvey Harrison <[email protected]>
I actually dropped this one because the code it's patching isn't there any more.