Procházet zdrojové kódy

[MIPS] ARC: Use strchr instead of strstr.

Use strchr instead of strstr when searching for a single character

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Roel Kluin před 17 roky
rodič
revize
fa09187c34
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      arch/mips/fw/arc/cmdline.c

+ 1 - 1
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);