summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tegra/nvmap/nvmap_handle.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_handle.c b/drivers/video/tegra/nvmap/nvmap_handle.c
index 03859bec52c5..6eab5a2ccc36 100644
--- a/drivers/video/tegra/nvmap/nvmap_handle.c
+++ b/drivers/video/tegra/nvmap/nvmap_handle.c
@@ -145,7 +145,6 @@ static struct page *nvmap_alloc_pages_exact(gfp_t gfp, size_t size)
static int handle_page_alloc(struct nvmap_client *client,
struct nvmap_handle *h, bool contiguous)
{
- int err = 0;
size_t size = PAGE_ALIGN(h->size);
unsigned int nr_page = size >> PAGE_SHIFT;
pgprot_t prot;
@@ -232,9 +231,6 @@ static int handle_page_alloc(struct nvmap_client *client,
*/
nvmap_flush_cache(pages, nr_page);
- if (err)
- goto fail;
-
if (h->userflags & NVMAP_HANDLE_ZEROED_PAGES || zero_memory)
free_vm_area(area);
h->size = size;