From: Krzysztof Kozlowski Date: Sun, 20 Sep 2020 20:26:25 +0000 (+0200) Subject: soc: fsl: qbman: Fix return value on success X-Git-Tag: v5.10.7~1321^2~5^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=750cf40c0f7088f36a8a5d102e0488b1ac47faf5;p=platform%2Fkernel%2Flinux-rpi.git soc: fsl: qbman: Fix return value on success 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 --- diff --git a/drivers/soc/fsl/qbman/bman.c b/drivers/soc/fsl/qbman/bman.c index f4fb527..c5dd026 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;