Use strchr instead of strstr in mips/fw/arc/cmdline.c
PATCH 1/1 Use strchr instead of strstr in mips/fw/arc/cmdline.c
Use strchr instead of strstr when searching for a single character
Signed-off-by Roel Kluin <[email protected]>
---
arch/mips/fw/arc/cmdline.c +1 -1
@@ -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);
Quoted 3 lines · Roel Kluin
Use strchr instead of strstr when searching for a single character
Signed-off-by Roel Kluin <[email protected]>
Thanks, queued for 2.6.25.
Ralf