Skip to content

Commit 309b517

Browse files
jianchunfuBoris Ostrovsky
authored andcommitted
arch:x86:xen: Remove unnecessary assignment in xen_apic_read()
In the function xen_apic_read(), the initialized value of 'ret' is unused because it will be assigned by the function HYPERVISOR_platform_op(), thus remove it. Signed-off-by: jianchunfu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Boris Ostrovsky <[email protected]>
1 parent c94b731 commit 309b517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/xen/apic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static u32 xen_apic_read(u32 reg)
5151
.interface_version = XENPF_INTERFACE_VERSION,
5252
.u.pcpu_info.xen_cpuid = 0,
5353
};
54-
int ret = 0;
54+
int ret;
5555

5656
/* Shouldn't need this as APIC is turned off for PV, and we only
5757
* get called on the bootup processor. But just in case. */

0 commit comments

Comments
 (0)