tbm_bufmgr_sprd: clean up _sprd_bo_cache_flush() 49/97449/1
authorYoungJun Cho <yj44.cho@samsung.com>
Mon, 14 Nov 2016 07:04:31 +0000 (16:04 +0900)
committerYoungJun Cho <yj44.cho@samsung.com>
Mon, 14 Nov 2016 07:04:31 +0000 (16:04 +0900)
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 <yj44.cho@samsung.com>
src/tbm_bufmgr_sprd.c

index bf2366e..b93e42e 100644 (file)
@@ -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)