Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp249028pxx; Wed, 28 Oct 2020 04:04:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhHh1TXc0IBr6G2cbKu1oOlrmgXbMzFH8Ovcuvv9aMLCFVxEQLhKAFj/AM2/EdrRMy1tMp X-Received: by 2002:a17:906:2e59:: with SMTP id r25mr7092032eji.520.1603883086591; Wed, 28 Oct 2020 04:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603883086; cv=none; d=google.com; s=arc-20160816; b=k7cJWFpFCfo5CjvjncYL9jeF5zN/ShUVPjAnBzEXGq7DQOeXqLhokkYKdAB4xYn7p9 4hS37Z+gHyvdlVc8eEagMCancrf3sTC4o8ptJVutCNIxgDV12GYXVbCjU7IRAV0sZkEo 9mJa965eWURXV+59GLfqXfArgoxLISnkU4+NfVENT3pKuoEsxnoufI4cRN5Z1XKT/FwZ brBtBnrvTwOAEAtj8lw3bo19Cr8pXdw+0XgZp1wjxJbbD8ZvLh39ohWvWwdhV/Nrcs8t 7bNOqzaNwAMqfPp7DOqP4A3b82Y/WMNs4m4WtDfsMV3Og9Eq1lmrshQo1ULSZ5lxzGfe WHsQ== 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=O7mn6eMFViou5qeAc/27kVNA9usrM5yi7NMU7AFB3bN+MYK5FNe4NLDhAJuOgM9gwV L4saaKTZLNTuNyWROCXQZMvewX/dMNiXq93og+31pfr5htxiTl3Nn/IL4o4FOi5b6i+W 4bATJweJSjo+uUN0X7HDE08wmI+t7CGyze+1lDveUQ9DKinvo2T+Q2VcqkClTjvoV+MX 7UMo8ChViPyd/ldIKv5JB7/QruzNkGQzpPgwSf32+tSRvLgtP/a81HXOc6SsgwIWA9iu Ofhjp3sPlZMFL613foFVKhrOVUErb/F2PKmKcdqxIFOELjIET+pYvsVT5NyysIWCNso9 CZzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nyvwhJdT; 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 p17si2879649ejg.48.2020.10.28.04.04.24; Wed, 28 Oct 2020 04:04:46 -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=nyvwhJdT; 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 S1784318AbgJ0O7C (ORCPT + 99 others); Tue, 27 Oct 2020 10:59:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:44610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763116AbgJ0Ooo (ORCPT ); Tue, 27 Oct 2020 10:44:44 -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 D550521527; Tue, 27 Oct 2020 14:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809884; bh=AGYOV/Hmur2XNcduLhRatyeBVAK1wfJ200zWnFeF+1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nyvwhJdTqxCe1vN6AO/mnbMv2B2yn6Wc8V2RlNeLF88VZ8uFKJjUVHHaICce6yTOr bi4iUP0+UAraXydSqFdUHQUFIyJUjMV6tNRz6lkC+OmHV+BmU9NVU+YDcZNXY6uYPZ 7cm22lwba1nW2xb/rnBc83bU8EpzIf5ZqUng5b0k= 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.4 312/408] soc: fsl: qbman: Fix return value on success Date: Tue, 27 Oct 2020 14:54:10 +0100 Message-Id: <20201027135509.505152820@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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