From: YoungJun Cho Date: Mon, 14 Nov 2016 07:04:31 +0000 (+0900) Subject: tbm_bufmgr_sprd: clean up _sprd_bo_cache_flush() X-Git-Tag: accepted/tizen/3.0/mobile/20161116.021432~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ab9dcf0283076b937a6674e27a9b2af5368b46c;p=platform%2Fadaptation%2Fspreadtrum%2Flibtbm-sprd.git tbm_bufmgr_sprd: clean up _sprd_bo_cache_flush() This patch cleans up _sprd_bo_cache_flush(). - There is a routine for bo_sprd is NULL case, so the NULL check routine is wrong. Change-Id: I7f62cc19300c6bec770d013e614f79d22224a8e0 Signed-off-by: YoungJun Cho --- diff --git a/src/tbm_bufmgr_sprd.c b/src/tbm_bufmgr_sprd.c index bf2366e..b93e42e 100644 --- a/src/tbm_bufmgr_sprd.c +++ b/src/tbm_bufmgr_sprd.c @@ -453,7 +453,6 @@ static int _sprd_bo_cache_flush(tbm_bufmgr_sprd bufmgr_sprd, tbm_bo_sprd bo_sprd, int flags) { SPRD_RETURN_VAL_IF_FAIL(bufmgr_sprd != NULL, 0); - SPRD_RETURN_VAL_IF_FAIL(bo_sprd != NULL, 0); /* cache flush is managed by kernel side when using dma-fence. */ if (bufmgr_sprd->use_dma_fence)