]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
soc: fsl: qbman: Fix return value on success
authorKrzysztof Kozlowski <krzk@kernel.org>
Sun, 20 Sep 2020 20:26:25 +0000 (22:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:14 +0000 (10:08 +0100)
[ 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 <krzk@kernel.org>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/fsl/qbman/bman.c

index f4fb527d83018772f0eb07e7d1d4f56f387b2d6d..c5dd026fe889f053818e31f0759739ee4550eb8a 100644 (file)
@@ -660,7 +660,7 @@ int bm_shutdown_pool(u32 bpid)
        }
 done:
        put_affine_portal();
-       return 0;
+       return err;
 }
 
 struct gen_pool *bm_bpalloc;