rcar_gen3: drivers: qos: H3: Drop extra level of nesting
The extra level of nesting is not necessary, drop it.
No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Change-Id: I7b55a6fa53145ff0427e05656234917f486031df
diff --git a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v11.c b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v11.c
index bd1865d..2001ad9 100644
--- a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v11.c
+++ b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v11.c
@@ -235,19 +235,16 @@
io_write_32(0xFFC51800, 0x00000001U);
/* CCI bus Leaf setting */
- {
+ uint32_t modemr = io_read_32(RCAR_MODEMR);
- uint32_t modemr = io_read_32(RCAR_MODEMR);
-
- modemr &= MODEMR_BOOT_CPU_MASK;
+ modemr &= MODEMR_BOOT_CPU_MASK;
- if ((modemr == MODEMR_BOOT_CPU_CA57) ||
- (modemr == MODEMR_BOOT_CPU_CA53)) {
- io_write_32(0xF1300800, 0x00000001U);
- io_write_32(0xF1340800, 0x00000001U);
- io_write_32(0xF1380800, 0x00000001U);
- io_write_32(0xF13C0800, 0x00000001U);
- }
+ if ((modemr == MODEMR_BOOT_CPU_CA57) ||
+ (modemr == MODEMR_BOOT_CPU_CA53)) {
+ io_write_32(0xF1300800, 0x00000001U);
+ io_write_32(0xF1340800, 0x00000001U);
+ io_write_32(0xF1380800, 0x00000001U);
+ io_write_32(0xF13C0800, 0x00000001U);
}
/* Resource Alloc start */