* [PATCH] Use strchr instead of strstr in mips/fw/arc/cmdline.c
@ 2007-11-02 18:59 Roel Kluin
2007-11-05 11:46 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2007-11-02 18:59 UTC (permalink / raw)
To: linux-mips
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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Use strchr instead of strstr in mips/fw/arc/cmdline.c
2007-11-02 18:59 [PATCH] Use strchr instead of strstr in mips/fw/arc/cmdline.c Roel Kluin
@ 2007-11-05 11:46 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2007-11-05 11:46 UTC (permalink / raw)
To: Roel Kluin; +Cc: linux-mips
On Fri, Nov 02, 2007 at 07:59:05PM +0100, Roel Kluin wrote:
> Use strchr instead of strstr when searching for a single character
>
> Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Thanks, queued for 2.6.25.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-05 11:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-02 18:59 [PATCH] Use strchr instead of strstr in mips/fw/arc/cmdline.c Roel Kluin
2007-11-05 11:46 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).