]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blobdiff - drivers/video/tegra/nvmap/nvmap_pp.c
video: tegra: nvmap: fix unsigned comparison against zero
[sojka/nv-tegra/linux-3.10.git] / drivers / video / tegra / nvmap / nvmap_pp.c
index bfdf4fdc164fb2c19fb702a1d077b075fb956cbe..6fab0ee2e4faa238e373e5eb5d07cfb1a07ddfa8 100644 (file)
@@ -654,7 +654,7 @@ int nvmap_page_pool_init(struct nvmap_device *dev)
        else
                pool->length = CONFIG_NVMAP_PAGE_POOL_SIZE;
 
-       if (pool->length < 0 || pool->length >= info.totalram)
+       if (pool->length >= info.totalram)
                goto fail;
        pool_size = pool->length;