staging: unisys: virtpci: Add braces to if/else statements
authorBryan Thompson <bryan.thompson@unisys.com>
Thu, 30 Oct 2014 20:18:50 +0000 (16:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 20:35:35 +0000 (13:35 -0700)
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>
drivers/staging/unisys/virtpci/virtpci.c

index baf12e54b6d92a4eb2e47468b5bbdb63d31fed45..07d1966e8b357b41733ff9527aaa78a6bc4625a7 100644 (file)
@@ -847,8 +847,9 @@ static int virtpci_device_probe(struct device *dev)
                        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 */
@@ -992,9 +993,9 @@ static int virtpci_device_add(struct device *parentbus, int devtype,
        }
 
        /* add it at the head */
-       if (!VpcidevListHead)
+       if (!VpcidevListHead) {
                VpcidevListHead = virtpcidev;
-       else {
+       else {
                /* insert virtpcidev at the head of our linked list of
                 * vpcidevs
                 */