mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
arm64: zynqmp: remove unnecessary logical constraint
In if (a || b) else if (!a) the constraint (!a) is always true if else is reached and can be removed. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
73a01d90c0
commit
549d684d4e
1 changed files with 2 additions and 2 deletions
|
|
@ -198,7 +198,7 @@ int zynqmp_mmio_write(const u32 address,
|
|||
{
|
||||
if (IS_ENABLED(CONFIG_SPL_BUILD) || current_el() == 3)
|
||||
return zynqmp_mmio_rawwrite(address, mask, value);
|
||||
else if (!IS_ENABLED(CONFIG_SPL_BUILD))
|
||||
else
|
||||
return invoke_smc(ZYNQMP_MMIO_WRITE, address, mask,
|
||||
value, 0, NULL);
|
||||
|
||||
|
|
@ -215,7 +215,7 @@ int zynqmp_mmio_read(const u32 address, u32 *value)
|
|||
|
||||
if (IS_ENABLED(CONFIG_SPL_BUILD) || current_el() == 3) {
|
||||
ret = zynqmp_mmio_rawread(address, value);
|
||||
} else if (!IS_ENABLED(CONFIG_SPL_BUILD)) {
|
||||
} else {
|
||||
ret = invoke_smc(ZYNQMP_MMIO_READ, address, 0, 0,
|
||||
0, ret_payload);
|
||||
*value = ret_payload[1];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue