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>
_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)