summary refs log tree commit diff stats
path: root/tools/i386/qemu-vmsr-helper.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2025-04-07 10:26:41 +0200
committerMarkus Armbruster <armbru@redhat.com>2025-04-24 09:33:24 +0200
commit720a0e417ef0814d90aa884096a643b02ee854dc (patch)
tree3973f28e1bea5ac141daecf7fd73da9e06a0a1cc /tools/i386/qemu-vmsr-helper.c
parent91d0d16b44c93fa82cf76ae12990ce3aa96096c9 (diff)
downloadfocaccia-qemu-720a0e417ef0814d90aa884096a643b02ee854dc.tar.gz
focaccia-qemu-720a0e417ef0814d90aa884096a643b02ee854dc.zip
cleanup: Re-run return_directly.cocci
Coccinelle's indentation of virt_create_plic() results in a long line.
Avoid that by mimicking the old indentation manually.

Don't touch tests/tcg/mips/user/.  I'm not sure these files are ours
to make style cleanups on.  They might be imported third-party code,
which we should leave as is to not complicate future updates.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250407082643.2310002-2-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'tools/i386/qemu-vmsr-helper.c')
-rw-r--r--tools/i386/qemu-vmsr-helper.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/i386/qemu-vmsr-helper.c b/tools/i386/qemu-vmsr-helper.c
index a35dcb88a3..5f19a48cbd 100644
--- a/tools/i386/qemu-vmsr-helper.c
+++ b/tools/i386/qemu-vmsr-helper.c
@@ -71,7 +71,6 @@ static void compute_default_paths(void)
 
 static int is_intel_processor(void)
 {
-    int result;
     int ebx, ecx, edx;
 
     /* Execute CPUID instruction with eax=0 (basic identification) */
@@ -87,9 +86,7 @@ static int is_intel_processor(void)
      *  0x49656e69 = "ineI"
      *  0x6c65746e = "ntel"
      */
-    result = (ebx == 0x756e6547) && (edx == 0x49656e69) && (ecx == 0x6c65746e);
-
-    return result;
+    return (ebx == 0x756e6547) && (edx == 0x49656e69) && (ecx == 0x6c65746e);
 }
 
 static int is_rapl_enabled(void)