Skip to content

Commit 750cf40

Browse files
krzkLi Yang
authored andcommitted
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: 0505d00 ("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>
1 parent 1fe4419 commit 750cf40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/fsl/qbman/bman.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ int bm_shutdown_pool(u32 bpid)
660660
}
661661
done:
662662
put_affine_portal();
663-
return 0;
663+
return err;
664664
}
665665

666666
struct gen_pool *bm_bpalloc;

0 commit comments

Comments
 (0)