[KJ] [PATCH] Pointed by kj-devel.pl over drivers/ide/ide.c

Mauricio Mauad mauad at consultant.com
Sat Sep 2 16:32:39 PDT 2006


Hi,

    I'm just sending you a very simple patch just to follow the guidelines
pointed on the TODO list. That's the way? If yes, I will send you some more.

diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index 3fdab56..3276391 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -1427,8 +1427,8 @@ static int __init stridx (const char *s,
  */
 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";
+       static const char decimal[] = "0123456789";
+       static const char hex[] = "0123456789abcdef";
        int i, n;

        if (*s++ == '=') {





More information about the Kernel-janitors mailing list