mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 06:50:43 -04:00
staging: vme_user: Fix unbalanced {} in if-else blocks
Add missing braces so that {} are balanced in all arms of if-else
statements as per Linux coding style. Issue found by checkpatch.pl
Signed-off-by: Soumya Negi <soumya.negi97@gmail.com>
Link: https://lore.kernel.org/r/b0fad6de7405a105235b3b595e0bb2c51be7dcf0.1697240381.git.soumya.negi97@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4d8cc30a9b
commit
2a7f242e88
@@ -1849,8 +1849,9 @@ static int __vme_register_driver_bus(struct vme_driver *drv,
|
||||
if (vdev->dev.platform_data) {
|
||||
list_add_tail(&vdev->drv_list, &drv->devices);
|
||||
list_add_tail(&vdev->bridge_list, &bridge->devices);
|
||||
} else
|
||||
} else {
|
||||
device_unregister(&vdev->dev);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -2118,8 +2118,9 @@ static int tsi148_slot_get(struct vme_bridge *tsi148_bridge)
|
||||
if (!geoid) {
|
||||
slot = ioread32be(bridge->base + TSI148_LCSR_VSTAT);
|
||||
slot = slot & TSI148_LCSR_VSTAT_GA_M;
|
||||
} else
|
||||
} else {
|
||||
slot = geoid;
|
||||
}
|
||||
|
||||
return (int)slot;
|
||||
}
|
||||
@@ -2196,9 +2197,9 @@ static int tsi148_crcsr_init(struct vme_bridge *tsi148_bridge,
|
||||
dev_info(tsi148_bridge->parent, "CR/CSR Offset: %d\n", cbar);
|
||||
|
||||
crat = ioread32be(bridge->base + TSI148_LCSR_CRAT);
|
||||
if (crat & TSI148_LCSR_CRAT_EN)
|
||||
if (crat & TSI148_LCSR_CRAT_EN) {
|
||||
dev_info(tsi148_bridge->parent, "CR/CSR already enabled\n");
|
||||
else {
|
||||
} else {
|
||||
dev_info(tsi148_bridge->parent, "Enabling CR/CSR space\n");
|
||||
iowrite32be(crat | TSI148_LCSR_CRAT_EN,
|
||||
bridge->base + TSI148_LCSR_CRAT);
|
||||
|
||||
Reference in New Issue
Block a user