diff options
| author | Sachin Nikam <snikam@nvidia.com> | 2014-03-21 12:36:23 +0530 |
|---|---|---|
| committer | Sachin Nikam <snikam@nvidia.com> | 2014-03-23 22:47:08 -0700 |
| commit | 16fb68954dde0d7fb0abf2f474a33c5d11342b67 (patch) | |
| tree | 36ce0f630bc17f0757d414c429df2c5b0df329a8 | |
| parent | ef70f76b89e178229eb6803d07379de479a188eb (diff) | |
video: tegra: nvmap: remove logically dead code
Coverity ID: 25977
Bug 1416640
Change-Id: If8ead940e2ba796703516bb551472e62d6c06873
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/384848
| -rw-r--r-- | drivers/video/tegra/nvmap/nvmap_handle.c | 4 |
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; |
