diff options
author | Colin Cross <ccross@android.com> | 2013-08-20 21:31:34 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2013-09-19 23:03:32 -0500 |
commit | 846b79b79391558e07b088193e14affe89d3be1b (patch) | |
tree | d29f58f703d4100013752f2bb34a46a18b1056d1 /crypto | |
parent | d37aa151f874563a35d49a0ff0a129ef332c5e9e (diff) |
ion: remove IS_ERR_OR_NULL
IS_ERR_OR_NULL is often part of a bad pattern that can accidentally
return 0 on error:
if (IS_ERR_OR_NULL(ptr))
return PTR_ERR(ptr);
It also usually means that the errors of a function are not well
defined. Replace all uses in ion.c by ensure that the return
type of any function in ion is an ERR_PTR.
Specify that the expected return value from map_kernel or map_dma
heap ops is ERR_PTR, and warn if a heap returns NULL.
Change-Id: I6e7ea0d2e62fa08d4e372a7ef6da649f7a62289c
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions