Re: [PATCH 03/12] ide: use the common ascii hex helpers

Previous thread: Cpuset management utility 0.9.1 release announcement by Alex Tsariounov on Monday, May 12, 2008 - 12:01 pm. (1 message)

Next thread: [PATCH 04/12] isdn: use the common ascii hex helpers by Harvey Harrison on Monday, May 12, 2008 - 12:05 pm. (1 message)
From: Harvey Harrison
Date: Monday, May 12, 2008 - 12:05 pm

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
 drivers/ide/ide.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index c758dcb..916a3e6 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -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 m
 			while ((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)
-- 
1.5.5.1.404.g981f6


--

From: Bartlomiej Zolnierkiewicz
Date: Wednesday, May 14, 2008 - 1:48 pm

Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
--

From: Andrew Morton
Date: Wednesday, May 14, 2008 - 1:54 pm

On Wed, 14 May 2008 22:48:22 +0200

I actually dropped this one because the code it's patching isn't
there any more.
--

Previous thread: Cpuset management utility 0.9.1 release announcement by Alex Tsariounov on Monday, May 12, 2008 - 12:01 pm. (1 message)

Next thread: [PATCH 04/12] isdn: use the common ascii hex helpers by Harvey Harrison on Monday, May 12, 2008 - 12:05 pm. (1 message)