aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2012-12-05 14:49:10 -0200
committerAndreas Färber <afaerber@suse.de>2012-12-19 14:09:31 +0100
commit04a2d61e494532260214736ebb0f975822771643 (patch)
treeb08449202c9dd69772cdda11af053006a93a441b /hw/qdev.c
parent92a3136174f60ee45b113296cb2c2a5225b00369 (diff)
qdev: Coding style fixes
Add missing braces and break lines larger than 80 chars. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r--hw/qdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 599382cab2..0f8b87843a 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -315,8 +315,9 @@ void qdev_connect_gpio_out(DeviceState * dev, int n, qemu_irq pin)
void qdev_set_nic_properties(DeviceState *dev, NICInfo *nd)
{
qdev_prop_set_macaddr(dev, "mac", nd->macaddr.a);
- if (nd->netdev)
+ if (nd->netdev) {
qdev_prop_set_netdev(dev, "netdev", nd->netdev);
+ }
if (nd->nvectors != DEV_NVECTORS_UNSPECIFIED &&
object_property_find(OBJECT(dev), "vectors", NULL)) {
qdev_prop_set_uint32(dev, "vectors", nd->nvectors);