mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
soc: fsl: qbman: Fix return value on success
[ Upstream commit750cf40c0f
] 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:0505d00c8d
("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>
This commit is contained in:
parent
c7ffa707e6
commit
55a7acbc04
1 changed files with 1 additions and 1 deletions
|
@ -660,7 +660,7 @@ int bm_shutdown_pool(u32 bpid)
|
|||
}
|
||||
done:
|
||||
put_affine_portal();
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
struct gen_pool *bm_bpalloc;
|
||||
|
|
Loading…
Reference in a new issue