Skip to contentSkip to conversation

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

PATCH In review Roel Kluin 2 participants 2 messages Nov 2, 2007 – Nov 5, 2007 MIPS

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

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

---

arch/mips/fw/arc/cmdline.c +1 -1
index fd604ef..4ca4eef 100644
@@ -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);