Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp290453pxx; Wed, 28 Oct 2020 05:08:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLLwgjdLZ+p6eVLWWqe6Esd/qSM4Vd6bm9gwTR8OQLZcF69JREXk/h3un2NtwWoRGGWPWo X-Received: by 2002:a17:906:590d:: with SMTP id h13mr7101269ejq.226.1603886911418; Wed, 28 Oct 2020 05:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603886911; cv=none; d=google.com; s=arc-20160816; b=R5kAb8sPLe0viSmzr1IzIm1twy+7YGzXQqO+g70UW815mmYyH1KDXcnBlIR464BUcu AeTno787be98L7ZcfbhAPbWWZsNS2cT+ZSZNY3RvHM1xJpPtBWaBInnC/mYV5vgLjXWS /9TqzJI8VHeCIe4Zua7gpY5aitXgQl3r37TGcwRnFNZt4afaTorxVZ7ZavZLYkwMKX4y 1WsbMYm5m5m5122ictnQ422xMhPsUJbuzMZjftvXiTN6Teph4592jXxfeOXflMgXq193 o9gVx2llHMBuW3WZpCC8CI1d1zyeOukLiBRCC6eosMoOo87THrdqHc7kJu1DN28dEs0g cBGA== 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=tkcrO0t2k0GDfm3SJ5fD+MGWKJkkIvpnPpj3EAPRDpo=; b=w8HFlQTX1UuPXtSTaVPqknCZgWV/18PlWXDzlmi1wgdrXD7J3OX9Mc+GFFEJsmPRBg wozDWYDIzGP749Q67iPoH37ml0690fGl5yGEWqWU1v08BHqM/Kd3KHwmMWHcdmOICyaD 9+xteDQEJKAF3KDzHkYv7H0Qp1xkZ4Kb03QRAVq3Z9oCGCQNNPYplLNKx4Yr4W4LGKF4 AHXiVqdFmNHGueP9phoG28m+lCvwOIf3CjF6yZkwkUrZYvczsOq4iQNtEmBe39oG22SO tLboSGF6n33+xRpn9vuIjf4U2RyR4XIemnX37ZDe75mw7IOIBeT7zUVJRRnmHCYf8yzm uZrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t5XBSl8d; 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=fail (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 o10si2705925ejr.482.2020.10.28.05.08.07; Wed, 28 Oct 2020 05:08:31 -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=@kernel.org header.s=default header.b=t5XBSl8d; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1795458AbgJ0PPO (ORCPT + 99 others); Tue, 27 Oct 2020 11:15:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:47046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1794328AbgJ0PLO (ORCPT ); Tue, 27 Oct 2020 11:11:14 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F7A5206F4; Tue, 27 Oct 2020 15:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811473; bh=AGYOV/Hmur2XNcduLhRatyeBVAK1wfJ200zWnFeF+1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t5XBSl8dtgFCkNc/MWQbYNh+tQ6g1TMKvhnegjL7AIsrpw2yd6bPxCk4Y1z3PErAi HLTZ460NRfUbtJFB0Ezn3MUAiS3BwWiB9G9MvgoSZoCEh0Om2oSYnUToyThhXNDbK+ VsullPp4nvgJFaXysPou6VmT1gaxUxiG0aiFo9yw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , Li Yang , Sasha Levin Subject: [PATCH 5.8 505/633] soc: fsl: qbman: Fix return value on success Date: Tue, 27 Oct 2020 14:54:08 +0100 Message-Id: <20201027135546.421825020@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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: Krzysztof Kozlowski [ Upstream commit 750cf40c0f7088f36a8a5d102e0488b1ac47faf5 ] On error the function was meant to return -ERRNO. This also fixes compile warning: drivers/soc/fsl/qbman/bman.c:640:6: warning: variable 'err' set but not used [-Wunused-but-set-variable] Fixes: 0505d00c8dba ("soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup") Signed-off-by: Krzysztof Kozlowski Signed-off-by: Li Yang Signed-off-by: Sasha Levin --- drivers/soc/fsl/qbman/bman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qbman/bman.c b/drivers/soc/fsl/qbman/bman.c index f4fb527d83018..c5dd026fe889f 100644 --- a/drivers/soc/fsl/qbman/bman.c +++ b/drivers/soc/fsl/qbman/bman.c @@ -660,7 +660,7 @@ int bm_shutdown_pool(u32 bpid) } done: put_affine_portal(); - return 0; + return err; } struct gen_pool *bm_bpalloc; -- 2.25.1