]> git.proxmox.com Git - mirror_qemu.git/commit - hw/core/machine.c
machine: Add comment to abort path in machine_set_kernel_irqchip
authorGreg Kurz <groug@kaod.org>
Wed, 13 Jul 2016 18:11:45 +0000 (20:11 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 27 Jul 2016 14:25:06 +0000 (11:25 -0300)
commit78a3930685c3159c4b8f953bd9f9e7a28655d823
tree3bc90cd2f2dee714a0fb7ee3f7134b7a0b21f78d
parent9527e7bde5b59005ddb2d902973915b81b4c5b2c
machine: Add comment to abort path in machine_set_kernel_irqchip

We're not supposed to abort when the user passes a bogus value.
Since the checking is done in visit_type_OnOffSplit(), the call
to abort() is legitimate. Let's add a comment to make it
explicit.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/machine.c