Message ID | 20221206170913.3316205-1-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBRPOXWOAMGQE54F7LNY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 68EC43F1C8 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 6 Dec 2022 18:09:26 +0100 (CET) Received: by mail-wr1-f70.google.com with SMTP id g14-20020adfa48e000000b00241f94bcd54sf3463821wrb.23 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 06 Dec 2022 09:09:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670346566; cv=pass; d=google.com; s=arc-20160816; b=C6qjULD9+7BMKr+5mQexWBgyZ6KDsiXlGE0ors0xqk9PZ+z50x5Ebwh2OXO4vYNOIS yyG4Zdlu92+u9a8SGnAtSPQErZD7/jVX7nuFRkG0oPz87EBXYLeoBzZErrzsgE/tN2gq JIjQAuVYOsYNUGsvWvH/0aao2X9nnXGAA8j7aMNOg8QdLdTwl68NsbLamGlBbX5oJPHv +NiHxXUu5WV/TQTJks9Tfuj4yfG9yiP5OF0vxjcYiuKllMU1ecOFKV/Xb6uS9xv4WGNN SXkuXjC1heiUbq38Xb2dxJhy/IVMXbA//P2YmYD5s80GSgn9I0mOQ3QFcxWHdXr5Sd7n XZdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=+7usIrBdWBqCxp0xCcmfyajQawRxO1igFYjsd+XcCwI=; b=HS+hS7hty2Jw1cqFq6rPmAlzgAXFuBeNFV/UWGP8OOe+gJ7SOOhfS9B1MUs4ulkwCl 29Z8eNJUdcnZBPE5aDTw7nZ9XvrH0Uvx5bjZGZza0ggfbsiIPisIZ9M4SRd+jvcxZ/Sz dBsT906AMpVqL6NflFBNtJ0wTtfHnyRJuxQ0FG2G2Bc6PIHhYRxZPgt/REPUxLJgb0aM brV8D74otl7XSXLjuLqUWHojs9mZ5IxU+D1Ls7GY0HhqJnyVzymGVZylYlCWOnDoqnTG pHSV/jkdM5UKh+wzyXAjXu+PFvdwLlL5XaTL50OByfzXEb2/dUNK/xil7EoxCjsJPYQC /gzg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FiKrRdnn; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=+7usIrBdWBqCxp0xCcmfyajQawRxO1igFYjsd+XcCwI=; b=MtLY9PVRR+2lhlMD8M6A3eDYJHHJwxudTv04+3cqneZRs6Rzvgr6UC91JDSk6qPxTW nf9jVjkGb2jNuTmqcksP7Kh+Dz5FkyFE2eCpg/8nQuHdH1E/fA5zxGx2wihvaKb2Dytr Ea/fvgPPckA7QiMOWBzrwz8zLEifJKEWAgdJw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+7usIrBdWBqCxp0xCcmfyajQawRxO1igFYjsd+XcCwI=; b=EqmtgiBwqlxHZa8ApSPo3GcAmVKkOTi7DGtf//dAe5Iekqta2LWnHux0ydNYzUqLAS U7hRz1+KgFnyPHzMXjq2nVsD8g64wkgC54gndItFjbSRmgu+XWxKdpB55AoV+XXMNme7 FOMTXScQOjdkxUtvQ0bS31QXzbWlwJoQ4zbr9WonEQdW5Q6kZzBqaNX+VarFP/D4vLuv Sj5C/vohQ9k5b9ENJFTyZ16+le45HjlHJp3VxLY0t+r0S0egBEbjtH5P+a/hMh2CeIbD /NxV2r+w2rvy/A3/QQLG6RH9TeaxSepdUC8RhfmHZCmba1FUQLTZf5lFWkJM3M2+SKOw 6aFg== X-Gm-Message-State: ANoB5pm/OwVE70W8ZdkqdoiAdqJxqx9qogZYUnGQjkuEKRPwahj6AhHR Zo9x+UWXUl21EjvrAY6Uwjh1h+jT X-Google-Smtp-Source: AA0mqf5KqcF+0sHHfbfbTMprFfmzUPPcnsiMixa1VI8PAbGPU6MBiUhjEOXTDctsei+KDNMoBDC4NQ== X-Received: by 2002:a05:600c:4f48:b0:3cf:54f4:eea with SMTP id m8-20020a05600c4f4800b003cf54f40eeamr58806374wmq.105.1670346565920; Tue, 06 Dec 2022 09:09:25 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:e909:0:b0:3c6:efd6:9cd8 with SMTP id q9-20020a1ce909000000b003c6efd69cd8ls10836wmc.0.-pod-control-gmail; Tue, 06 Dec 2022 09:09:25 -0800 (PST) X-Received: by 2002:a05:600c:35d4:b0:3cf:84e9:e722 with SMTP id r20-20020a05600c35d400b003cf84e9e722mr62212086wmq.8.1670346564801; Tue, 06 Dec 2022 09:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670346564; cv=none; d=google.com; s=arc-20160816; b=ijXoJJZMsxx32QLneNJaYga9ja+2BuloUqqLyistLTYhS36MujzscTpVxA60X82y1Z TQkiC9OPglz8Ox3lkRcNxBONd4NRGAJ+g3mH/MDYjGzVgKs4xtGSS/qJsvV48M55nTh3 OuMcINzD5VtUjki1z/bckHY3BiHJTK765STHr1rR0S4zCycEQtWT0MWC0mugRkocAHFr DGgttlNHVkVI6hITsxo/ptFpiHYoUhEBpMa9EZ+Y9t0+nr5i4sf7CQ6jt3VtfjU49qtD dtUbsBGo8PQnMyhfVw7RGxFn9FjeTYjoGOkMYwmWfgA+ucSLyrmUtEvrOcRjZOOSbnaw vO5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=MxiX4xJAqzGvUOJG6dGIAYeA5k9jqvSgVNBvDNesWok=; b=WuUJqcBnVg3WuTSOgDesZPvcB/8Zoz4wBVOfavJQhIOq5lJrHSf4KfjaPnYkMfO0rn tLX9GEbLhznsaetbDFSs+cKk5F8nhlO8mAPSaShF4PzgCbpujK3RId8Q1a2RDBu9slmC pdBxmWwE5JMyAGARSwMdWiK/Fa68uRVhsFa4Au+AOC9xj18Zowa+fQjVhtK6h28jzon8 oaS+YlDzWB8UzJcngjkqMi12xV58AKL9eQAqM8AK8lk/5rhOU8o8gSrHWxkvpjyeEGgd cka35q/rQhlNsBpdlwqwgew5qHDGhgnCCkYO0PVhhcaP94tljxctnBm3jqakuCyc91WK dSLQ== 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 dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id n23-20020a7bc5d7000000b003cf7212529esor6972263wmk.40.2022.12.06.09.09.24 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 06 Dec 2022 09:09:24 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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 <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Amarula patchwork <linux-amarula@amarulasolutions.com>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Florian Fainelli <f.fainelli@gmail.com>, Ray Jui <rjui@broadcom.com>, Russell King <linux@armlinux.org.uk>, Scott Branden <sbranden@broadcom.com>, 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 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FiKrRdnn; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
On Tue, 6 Dec 2022 18:09:13 +0100, Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > 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> > > --- Applied to https://github.com/Broadcom/stblinux/commits/soc/next, thanks! -- Florian
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);
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> --- arch/arm/mach-bcm/bcm63xx_smp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)