projects
/
platform
/
adaptation
/
spreadtrum
/
libtbm-sprd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tbm_bufmgr_sprd: clean up tbm_sprd_bo_size()
[platform/adaptation/spreadtrum/libtbm-sprd.git]
/
src
/
tbm_bufmgr_sprd.c
diff --git
a/src/tbm_bufmgr_sprd.c
b/src/tbm_bufmgr_sprd.c
index
b93e42e
..
29eba0b
100644
(file)
--- a/
src/tbm_bufmgr_sprd.c
+++ b/
src/tbm_bufmgr_sprd.c
@@
-828,6
+828,7
@@
tbm_sprd_bo_size(tbm_bo bo)
tbm_bo_sprd bo_sprd;
bo_sprd = (tbm_bo_sprd)tbm_backend_get_bo_priv(bo);
+ SPRD_RETURN_VAL_IF_FAIL(bo_sprd != NULL, 0);
return bo_sprd->size;
}