Skip to content

Commit 096560d

Browse files
Gavin ShanMarc Zyngier
authored andcommitted
KVM: arm64: vgic: Remove duplicate check in update_affinity_collection()
The 'coll' parameter to update_affinity_collection() is never NULL, so comparing it with 'ite->collection' is enough to cover both the NULL case and the "another collection" case. Remove the duplicate check in update_affinity_collection(). Signed-off-by: Gavin Shan <[email protected]> [maz: repainted commit message] Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b90cb10 commit 096560d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/vgic/vgic-its.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ static void update_affinity_collection(struct kvm *kvm, struct vgic_its *its,
406406
struct its_ite *ite;
407407

408408
for_each_lpi_its(device, ite, its) {
409-
if (!ite->collection || coll != ite->collection)
409+
if (ite->collection != coll)
410410
continue;
411411

412412
update_affinity_ite(kvm, ite);

0 commit comments

Comments
 (0)