diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2019-11-28 15:55:42 +0100 |
---|---|---|
committer | Li Yang <leoyang.li@nxp.com> | 2019-12-09 13:54:36 -0600 |
commit | 900470ce39996336a1d06da2015506106bb8ba42 (patch) | |
tree | 64fed661418520f06bb8bf5327cac212e37c6227 /mm/readahead.c | |
parent | 754f40e0977cd20c37ef4837ec2904ccd89125ce (diff) |
soc: fsl: qe: make cpm_muram_free() ignore a negative offset
This allows one to simplify callers since they can store a negative
value as a sentinel to indicate "this was never allocated" (or store
the -ENOMEM from an allocation failure) and then call cpm_muram_free()
unconditionally.
Reviewed-by: Timur Tabi <timur@kernel.org>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'mm/readahead.c')
0 files changed, 0 insertions, 0 deletions