diff options
author | Dario Binacchi <dario.binacchi@amarulasolutions.com> | 2022-12-06 20:09:13 +0300 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2023-01-11 00:46:59 +0300 |
commit | a46674396189d045993c7e4aed2c61b166b6585e (patch) | |
tree | 12d9672c97ceecfab276b56505969294e1b36c13 /arch/arm/mach-bcm | |
parent | 1b929c02afd37871d5afb9d498426f83432e71c2 (diff) | |
download | linux-a46674396189d045993c7e4aed2c61b166b6585e.tar.xz |
ARM: BCM63xx: remove useless goto statement
Between the 'goto out' statement and the 'out' label there are no other
statements, so it is useless to check the return value of the
bcm63xx_pmb_power_on_cpu() function. Then, let's remove the statements
that are unnecessarily executed.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://lore.kernel.org/r/20221206170913.3316205-1-dario.binacchi@amarulasolutions.com
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'arch/arm/mach-bcm')
-rw-r--r-- | arch/arm/mach-bcm/bcm63xx_smp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-bcm/bcm63xx_smp.c b/arch/arm/mach-bcm/bcm63xx_smp.c index 641e1f8fcf5e..18d0ffc621aa 100644 --- a/arch/arm/mach-bcm/bcm63xx_smp.c +++ b/arch/arm/mach-bcm/bcm63xx_smp.c @@ -142,8 +142,7 @@ static int bcm63138_smp_boot_secondary(unsigned int cpu, */ ret = bcm63xx_pmb_power_on_cpu(dn); of_node_put(dn); - if (ret) - goto out; + out: iounmap(bootlut_base); |