Skip to contentSkip to conversation

linux-user: Avoid redundant ENV_GET_CPU()

PATCH In review Andreas Färber 2 participants 2 messages Jul 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: Avoid redundant ENV_GET_CPU()

This fixes a mismerge in 874ec3c5b3821bb964f9f37b2f930f2a9ce51652.

---
 linux-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/main.c +1 -1
index 5dc0947..5309117 100644
@@ -3637,7 +3637,7 @@ int main(int argc, char **argv, char **envp)
         exit(1);
     }
     cpu = ENV_GET_CPU(env);
-    cpu_reset(ENV_GET_CPU(env));
+    cpu_reset(cpu);
 
     thread_cpu = cpu;
 
Signature · 1 line
1.8.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Andreas Färber

This fixes a mismerge in 874ec3c5b3821bb964f9f37b2f930f2a9ce51652.

Quoted 19 lines
---
 linux-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/main.c +1 -1
index 5dc0947..5309117 100644
@@ -3637,7 +3637,7 @@ int main(int argc, char **argv, char **envp)
         exit(1);
     }
     cpu = ENV_GET_CPU(env);
-    cpu_reset(ENV_GET_CPU(env));
+    cpu_reset(cpu);
 
     thread_cpu = cpu;
 
Signature · 1 line
1.8.1.4