linux-mips
[Top] [All Lists]

[PATCH] Use strchr instead of strstr in mips/fw/arc/cmdline.c

To: linux-mips@linux-mips.org
Subject: [PATCH] Use strchr instead of strstr in mips/fw/arc/cmdline.c
From: Roel Kluin <12o3l@tiscali.nl>
Date: Fri, 02 Nov 2007 19:59:05 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.6 (X11/20070728)
Use strchr instead of strstr when searching for a single character

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/arch/mips/fw/arc/cmdline.c b/arch/mips/fw/arc/cmdline.c
index fd604ef..4ca4eef 100644
--- a/arch/mips/fw/arc/cmdline.c
+++ b/arch/mips/fw/arc/cmdline.c
@@ -52,7 +52,7 @@ static char * __init move_firmware_args(char* cp)
                                strcat(cp, used_arc[i][1]);
                                cp += strlen(used_arc[i][1]);
                                /* ... and now the argument */
-                               s = strstr(prom_argv(actr), "=");
+                               s = strchr(prom_argv(actr), '=');
                                if (s) {
                                        s++;
                                        strcpy(cp, s);

<Prev in Thread] Current Thread [Next in Thread>