summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/nvmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/nvmap.c')
-rw-r--r--drivers/video/tegra/nvmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/nvmap.c b/drivers/video/tegra/nvmap.c
index 29594e013a35..de8c40891280 100644
--- a/drivers/video/tegra/nvmap.c
+++ b/drivers/video/tegra/nvmap.c
@@ -1036,7 +1036,7 @@ void _nvmap_handle_free(struct nvmap_handle *h)
}
/* ensure that no stale data remains in the cache for this handle */
- if (h->alloc || h->pgalloc)
+ if (h->alloc)
e = _nvmap_do_cache_maint(h, 0, h->size,
NVMEM_CACHE_OP_WB_INV, false);