瀏覽代碼

[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 18 年之前
父節點
當前提交
fa09187c34
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]);
 				strcat(cp, used_arc[i][1]);
 				cp += strlen(used_arc[i][1]);
 				cp += strlen(used_arc[i][1]);
 				/* ... and now the argument */
 				/* ... and now the argument */
-				s = strstr(prom_argv(actr), "=");
+				s = strchr(prom_argv(actr), '=');
 				if (s) {
 				if (s) {
 					s++;
 					s++;
 					strcpy(cp, s);
 					strcpy(cp, s);