video: tegra: nvmap: resolve compilation time warning
Sanjay Singh Rawat [Mon, 18 Jun 2012 17:51:41 +0000 (22:51 +0530)]
- Grouping variables around bitwise operators for safe operation.

bug 949219

Change-Id: I8edf7fb241eb79ac07b63ab856d206fc453308f1
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/109577
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/video/tegra/nvmap/nvmap_handle.c

index 0cdac92..05046ed 100644 (file)
@@ -748,7 +748,7 @@ int nvmap_alloc_handle_id(struct nvmap_client *client,
 #ifndef CONFIG_TEGRA_IOVMM
        /* convert iovmm requests to generic carveout. */
        if (heap_mask & NVMAP_HEAP_IOVMM) {
-               heap_mask = heap_mask & ~NVMAP_HEAP_IOVMM |
+               heap_mask = (heap_mask & ~NVMAP_HEAP_IOVMM) |
                            NVMAP_HEAP_CARVEOUT_GENERIC;
        }
 #endif