Update if/else blocks with braces on both the if and the else blocks in virtpci.c.
Signed-off-by: Bryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virtpcidev->mydriver = virtpcidrv;
POSTCODE_LINUX_2(VPCI_PROBE_EXIT_PC,
POSTCODE_SEVERITY_INFO);
- } else
+ } else {
put_device(dev);
+ }
}
POSTCODE_LINUX_2(VPCI_PROBE_FAILURE_PC, POSTCODE_SEVERITY_ERR);
return error; /* -ENODEV for probe failure */
}
/* add it at the head */
- if (!VpcidevListHead)
+ if (!VpcidevListHead) {
VpcidevListHead = virtpcidev;
- else {
+ } else {
/* insert virtpcidev at the head of our linked list of
* vpcidevs
*/