mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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: Bryan Thompson <bryan.thompson@unisys.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
65b96899ce
commit
5e7590ee82
@ -847,9 +847,10 @@ static int virtpci_device_probe(struct device *dev)
|
|||||||
virtpcidev->mydriver = virtpcidrv;
|
virtpcidev->mydriver = virtpcidrv;
|
||||||
POSTCODE_LINUX_2(VPCI_PROBE_EXIT_PC,
|
POSTCODE_LINUX_2(VPCI_PROBE_EXIT_PC,
|
||||||
POSTCODE_SEVERITY_INFO);
|
POSTCODE_SEVERITY_INFO);
|
||||||
} else
|
} else {
|
||||||
put_device(dev);
|
put_device(dev);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
POSTCODE_LINUX_2(VPCI_PROBE_FAILURE_PC, POSTCODE_SEVERITY_ERR);
|
POSTCODE_LINUX_2(VPCI_PROBE_FAILURE_PC, POSTCODE_SEVERITY_ERR);
|
||||||
return error; /* -ENODEV for probe failure */
|
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 */
|
/* add it at the head */
|
||||||
if (!VpcidevListHead)
|
if (!VpcidevListHead) {
|
||||||
VpcidevListHead = virtpcidev;
|
VpcidevListHead = virtpcidev;
|
||||||
else {
|
} else {
|
||||||
/* insert virtpcidev at the head of our linked list of
|
/* insert virtpcidev at the head of our linked list of
|
||||||
* vpcidevs
|
* vpcidevs
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user