Skip to content

Commit

Permalink
soc: fsl: qbman: Fix return value on success
Browse files Browse the repository at this point in the history
[ Upstream commit 750cf40 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
krzk authored and gregkh committed Oct 29, 2020
1 parent 342c291 commit fdb6b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/soc/fsl/qbman/bman.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ int bm_shutdown_pool(u32 bpid)
}
done:
put_affine_portal();
return 0;
return err;
}

struct gen_pool *bm_bpalloc;
Expand Down

0 comments on commit fdb6b48

Please sign in to comment.