Skip to content

Commit

Permalink
[MIPS] ARC: Use strchr instead of strstr.
Browse files Browse the repository at this point in the history
Use strchr instead of strstr when searching for a single character

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
Roel Kluin authored and ralfbaechle committed Jan 29, 2008
1 parent 3320234 commit fa09187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/fw/arc/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fa09187

Please sign in to comment.