mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
KVM: arm64: gic-v5: Drop unused addr variable
vgic_v5_has_attr_regs() assigns reg_attr.addr to addr, but never uses addr. Drop the unused local and assignment to avoid a W=1 warning. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202610210232.uzFGXnjw-lkp@intel.com/ Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com> Link: https://patch.msgid.link/20261021082204.1494581-1-sascha.bischoff@arm.com Signed-off-by: Marc Zyngier <maz@kernel.org>
This commit is contained in:
parent
a4be8d6969
commit
576a1b5ab4
|
|
@ -1134,7 +1134,7 @@ int vgic_v5_has_attr_regs(struct kvm_device *dev, struct kvm_device_attr *attr)
|
|||
const struct vgic_register_region *region;
|
||||
struct vgic_reg_attr reg_attr;
|
||||
struct kvm_vcpu *vcpu;
|
||||
gpa_t addr, offset;
|
||||
gpa_t offset;
|
||||
int ret, align;
|
||||
|
||||
ret = vgic_v5_parse_attr(dev, attr, ®_attr);
|
||||
|
|
@ -1142,7 +1142,6 @@ int vgic_v5_has_attr_regs(struct kvm_device *dev, struct kvm_device_attr *attr)
|
|||
return ret;
|
||||
|
||||
vcpu = reg_attr.vcpu;
|
||||
addr = reg_attr.addr;
|
||||
|
||||
if (attr->group == KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS)
|
||||
return vgic_v5_has_cpu_sysregs_attr(vcpu, attr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user