Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e7590ee authored by Bryan Thompson's avatar Bryan Thompson Committed by Greg Kroah-Hartman
Browse files

staging: unisys: virtpci: Add braces to if/else statements



Update if/else blocks with braces on both the if and the else blocks in virtpci.c.

Signed-off-by: default avatarBryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 65b96899
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -847,9 +847,10 @@ 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
		 */