Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7745006rwb; Tue, 6 Dec 2022 09:18:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+7eWzG1zvH6/fHFiExdOFqBjIsGkmrLG9SWwxP6lComvF853ERKN3ka7WkCDMDKpv7uBn X-Received: by 2002:a63:e411:0:b0:45f:b2a7:2659 with SMTP id a17-20020a63e411000000b0045fb2a72659mr62576446pgi.132.1670347108005; Tue, 06 Dec 2022 09:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670347107; cv=none; d=google.com; s=arc-20160816; b=xK6mhzmAQ/PHWPN9O7Jc98xdSzTmTsZ3QVkTnNTU9I2ZVTKk8UJFy0FfoqvlUIGapl ZPUyb+yeqMirdVt/PRRFI7JODTDs+8u0iLAT9iXt24JNP9yaaToot23rvYKZ66wnCYcq tYxRjt+nliO2Pz1wBF2SG7nV0yOV8F6cU48vdsLM1lOpFL/N8rTuGEYuLL0C9HBKro9Z Fz/Zr8wAceQlyrhcWKPr5KAuDzEWIyfVE3bu+5lYzzYffi9htHbRwmwLH7AxN+LYGnw/ sCSkc64ScnPMQEmiWeER6FVR+GZ298idE/iFCsI4k8SsIuWzDG+/xlYEP9LQwkIfC3Em UOsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MxiX4xJAqzGvUOJG6dGIAYeA5k9jqvSgVNBvDNesWok=; b=xGWusCKbE40XqkUzA3CpRL+rEAS3KoDUBcK0bL1v5OBlC9SWigiKEtzX8PHTnQo3Gg 8m4awdswy/aBsJcwdzaY72x98Pb/ubd+lepf311uxmh2mgEIH1oEaySwfl6bNKLF4Z6s 1i7amM+gIA7sh7WOxoQj/rPR1kI2krrUoxl3j3TciAPENUNJ8badEYBiLdse0ekEoD7i R/Cr+aY4i3AE7lFf3PeN4th60oDJQAqF5sJbkW61FXj4m9z+IDQhf/XANGGIwrkJHbvQ U1tEBEyHePXdy7nm92sASVbMpKSDN1geJYipL9CXGoWex2s6+kTrFO+EDIBqpsKN7/2B sJXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FiKrRdnn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq14-20020a17090b380e00b00218ceebbcafsi21557226pjb.130.2022.12.06.09.18.17; Tue, 06 Dec 2022 09:18:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FiKrRdnn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232825AbiLFRJr (ORCPT + 77 others); Tue, 6 Dec 2022 12:09:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235490AbiLFRJ1 (ORCPT ); Tue, 6 Dec 2022 12:09:27 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 512AD2DAB4 for ; Tue, 6 Dec 2022 09:09:26 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id ay40so4955002wmb.2 for ; Tue, 06 Dec 2022 09:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MxiX4xJAqzGvUOJG6dGIAYeA5k9jqvSgVNBvDNesWok=; b=FiKrRdnnu/Odmt1R/n1t39q5QwfZ5qIN6HA/spKh8UBYUbEp5m/PwauwlbcWDq1/fg f0iPgJiKeXpm+mpqMGW/CqBsUUeReZBncLjcD0EmMFPEcW0rRDCRI9Tz1gFi6IDwC1Ad L0Is4iHJySgrY9kwT1voN3pvDjihcKoCcYJdg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MxiX4xJAqzGvUOJG6dGIAYeA5k9jqvSgVNBvDNesWok=; b=FLgGOOCzZxNMzZJ0PUeaI4OIGMoHw443YeSKZcn6j580IQKIjMUSz8lSKURTDKrEOj SgMl9+Zj+H+TfAUlXWtx0PkEh2VZcCjoZ0WuRArCEobTYeDwIqR/hW8XnlJoRvzgbUml /mOICwCVqZppNDNUUXSQzZMpyyWKsbt9POJ0Fh6tQpbQwPMxz6D5BuDyL5R5zX/VbO1R KJLGffAEIqJfYr268uBjOHY2dqVraBG2qH6uq1rXqkMmwQsavNpMWzwbLi+4pIBMC0+H CYFr5KIa4NAZ/fWWY9RuiftwD8ranypzWmhUeu6DkBXxTW1xZh181maAResn0zkXooav c7gw== X-Gm-Message-State: ANoB5pkZOCXkywGS0R/8TgVkt6jVwGaswN41ksJOLSCWuxBy53IuRAO7 SCDdVN2PQML74iM85G+bEqh9cEw/SIx6ok+a X-Received: by 2002:a1c:7715:0:b0:3cf:d18d:3bfe with SMTP id t21-20020a1c7715000000b003cfd18d3bfemr66187328wmi.203.1670346564509; Tue, 06 Dec 2022 09:09:24 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-82-54-95-136.retail.telecomitalia.it. [82.54.95.136]) by smtp.gmail.com with ESMTPSA id e4-20020adff344000000b00236488f62d6sm17655402wrp.79.2022.12.06.09.09.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 09:09:24 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Dario Binacchi , Broadcom internal kernel review list , Florian Fainelli , Ray Jui , Russell King , Scott Branden , linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: BCM63xx: remove useless goto statement Date: Tue, 6 Dec 2022 18:09:13 +0100 Message-Id: <20221206170913.3316205-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm/mach-bcm/bcm63xx_smp.c | 3 +-- 1 file changed, 1 insertion(+), 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); -- 2.32.0