Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3854529pxv; Mon, 19 Jul 2021 10:19:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZmzhZkIP6LCaDbqjbQNmXpWdPZ/oR7vz7kh9CLLrtGOKCkZucBQNU+O51d7p7fYOdtW9B X-Received: by 2002:a17:906:7691:: with SMTP id o17mr29194455ejm.209.1626715152523; Mon, 19 Jul 2021 10:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626715152; cv=none; d=google.com; s=arc-20160816; b=sdRoK5gg+ecVTwQqozGHD6SaBYz70e+ZWgKTfkDGTLB6zjHnU4FHsIqGBxpIJc9xB2 dfeboDd4d5ciGZI4wUuod8aPxoqQ/XP65KjFgMzzAhe20HxahQJldn6743Bbgrt7UrGt LPld0ffmcwxFSNHmbD+WhAjfKWNdy/tNHfBcQZW18hax02TR2TI3MEkQBphG6Q6l4CoV 1/kJvzf6qd0ppkh93+lR92Aub8k9K5b/0jexjt7D+b85Za/WzLsADe5TScsP6mumiExf fXOvaSBK/HH3sf6fBiBM6F+/tpIXtEMY4HrmufjD5Jm9BeD1oJz3/Z1egS0l7AjzjcjG 2/jg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xMuYLmOMpBPK3p7boUhYH7yFeP7l5sw8njCl2Y+Rhwk=; b=AQOuo1keAgche9oZ5BgqgZ5WwIip2GHftpuumnqpQbsg8WAllpkB2e20BI5K17H1Kb 8jhcJWiguw7eKCtDVFGwAazPfJbcJOTZo1SUJY8Mkplpx3CqZP2irEmoGP2aPAfN7UWt ihNqZ6HIwI0+sLe/qNCX4m26d9sOyTFgwmARkZ9qw8b/5w/i5WtZUl9CWlYorgmhbLEG ERtlnoemJRsWJg4nl839xDnG9jI03Qd/8kjGGS1DNjC/GOSX42FU/E8XwcjvRNcuCgTl LFtbN20JfJmVX2l8ng6OrDj/ImDG76BcVYTxeJTH9pVkSb5XK/bQqz0/MZqMKsgg0aLT hpCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UTXIBfO6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh6si9388310ejb.691.2021.07.19.10.18.49; Mon, 19 Jul 2021 10:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UTXIBfO6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354738AbhGSQfV (ORCPT + 99 others); Mon, 19 Jul 2021 12:35:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:59628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347835AbhGSPVv (ORCPT ); Mon, 19 Jul 2021 11:21:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ACCD46143B; Mon, 19 Jul 2021 15:59:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710364; bh=H8qgTPdhyT1Kx8rXCvJiWcyjj55kRUNtbwE8zaJvcYc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UTXIBfO6cupIUGGELpYyy+rC0hI4gqZNIrRm2S3BtutOR14GtIWKrDqbgBW3yTEWa iynEd3uTxrbnvM6zZVFCRsc8UPckpuGjrhfEl2e1Um9owP8UAPs6ooFwPMiggZIOCZ a3KyUGIp6C9t/42cjWV4Ml8XfYlNZ6UmujFWKHNg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Suman Anna , Christophe JAILLET , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.10 151/243] remoteproc: k3-r5: Fix an error message Date: Mon, 19 Jul 2021 16:53:00 +0200 Message-Id: <20210719144945.788956203@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit 34c4da6d5dfba48f49f891ebd75bb55999f0c538 ] 'ret' is known to be 0 here. Reorder the code so that the expected error code is printed. Acked-by: Suman Anna Fixes: 6dedbd1d5443 ("remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/d6e29d903b48957bf59c67229d54b0fc215e31ae.1620333870.git.christophe.jaillet@wanadoo.fr Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/remoteproc/ti_k3_r5_remoteproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/ti_k3_r5_remoteproc.c b/drivers/remoteproc/ti_k3_r5_remoteproc.c index d9307935441d..afeb9d6e4313 100644 --- a/drivers/remoteproc/ti_k3_r5_remoteproc.c +++ b/drivers/remoteproc/ti_k3_r5_remoteproc.c @@ -1202,9 +1202,9 @@ static int k3_r5_core_of_init(struct platform_device *pdev) core->tsp = k3_r5_core_of_get_tsp(dev, core->ti_sci); if (IS_ERR(core->tsp)) { + ret = PTR_ERR(core->tsp); dev_err(dev, "failed to construct ti-sci proc control, ret = %d\n", ret); - ret = PTR_ERR(core->tsp); goto err; } -- 2.30.2