[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 14/19] mac_{old|new}world: Code style fix adding missing brace
From: |
BALATON Zoltan |
Subject: |
[PATCH v4 14/19] mac_{old|new}world: Code style fix adding missing braces to if-s |
Date: |
Tue, 25 Oct 2022 18:44:49 +0200 (CEST) |
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
hw/ppc/mac_newworld.c | 6 ++++--
hw/ppc/mac_oldworld.c | 9 ++++++---
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c
index 5d2fd69f35..4f5876670f 100644
--- a/hw/ppc/mac_newworld.c
+++ b/hw/ppc/mac_newworld.c
@@ -202,14 +202,16 @@ static void ppc_core99_init(MachineState *machine)
kernel_size = load_elf(machine->kernel_filename, NULL,
translate_kernel_address, NULL, NULL, NULL,
NULL, NULL, 1, PPC_ELF_MACHINE, 0, 0);
- if (kernel_size < 0)
+ if (kernel_size < 0) {
kernel_size = load_aout(machine->kernel_filename, kernel_base,
machine->ram_size - kernel_base,
bswap_needed, TARGET_PAGE_SIZE);
- if (kernel_size < 0)
+ }
+ if (kernel_size < 0) {
kernel_size = load_image_targphys(machine->kernel_filename,
kernel_base,
machine->ram_size - kernel_base);
+ }
if (kernel_size < 0) {
error_report("could not load kernel '%s'",
machine->kernel_filename);
diff --git a/hw/ppc/mac_oldworld.c b/hw/ppc/mac_oldworld.c
index e2b5dd0650..eecc54da59 100644
--- a/hw/ppc/mac_oldworld.c
+++ b/hw/ppc/mac_oldworld.c
@@ -160,14 +160,16 @@ static void ppc_heathrow_init(MachineState *machine)
kernel_size = load_elf(machine->kernel_filename, NULL,
translate_kernel_address, NULL, NULL, NULL,
NULL, NULL, 1, PPC_ELF_MACHINE, 0, 0);
- if (kernel_size < 0)
+ if (kernel_size < 0) {
kernel_size = load_aout(machine->kernel_filename, kernel_base,
machine->ram_size - kernel_base,
bswap_needed, TARGET_PAGE_SIZE);
- if (kernel_size < 0)
+ }
+ if (kernel_size < 0) {
kernel_size = load_image_targphys(machine->kernel_filename,
kernel_base,
machine->ram_size - kernel_base);
+ }
if (kernel_size < 0) {
error_report("could not load kernel '%s'",
machine->kernel_filename);
@@ -290,8 +292,9 @@ static void ppc_heathrow_init(MachineState *machine)
pci_create_simple(pci_bus, -1, "pci-ohci");
}
- if (graphic_depth != 15 && graphic_depth != 32 && graphic_depth != 8)
+ if (graphic_depth != 15 && graphic_depth != 32 && graphic_depth != 8) {
graphic_depth = 15;
+ }
/* No PCI init: the BIOS will do it */
--
2.30.4
- [PATCH v4 16/19] mac_newworld: Add machine types for different mac99 configs, (continued)
[PATCH v4 18/19] mac_newworld: Deprecate mac99 "via" option, BALATON Zoltan, 2022/10/25
[PATCH v4 19/19] mac_newworld: Document deprecation, BALATON Zoltan, 2022/10/25
[PATCH v4 14/19] mac_{old|new}world: Code style fix adding missing braces to if-s,
BALATON Zoltan <=
[PATCH v4 17/19] mac_newworld: Deprecate mac99 with G5 CPU, BALATON Zoltan, 2022/10/25
[PATCH v5 20/20] mac_{old, new}world: Pass MacOS VGA NDRV in card ROM instead of fw_cfg, BALATON Zoltan, 2022/10/25
[PATCH v5 19/20] mac_newworld: Document deprecation, BALATON Zoltan, 2022/10/25
Re: [PATCH v4 00/19] Misc ppc/mac machines clean up, BALATON Zoltan, 2022/10/25
Re: [PATCH v4 00/19] Misc ppc/mac machines clean up, Howard Spoelstra, 2022/10/27