Skip to content

Commit

Permalink
arch:x86:xen: Remove unnecessary assignment in xen_apic_read()
Browse files Browse the repository at this point in the history
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 <jianchunfu@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20220314070514.2602-1-jianchunfu@cmss.chinamobile.com
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
  • Loading branch information
jianchunfu authored and Boris Ostrovsky committed Mar 16, 2022
1 parent c94b731 commit 309b517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/xen/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static u32 xen_apic_read(u32 reg)
.interface_version = XENPF_INTERFACE_VERSION,
.u.pcpu_info.xen_cpuid = 0,
};
int ret = 0;
int ret;

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

0 comments on commit 309b517

Please sign in to comment.