Revert "[COMMON] g2d: fix unsigned datatype"
authorhyesoo.yu <hyesoo.yu@samsung.com>
Thu, 24 Aug 2017 01:20:20 +0000 (10:20 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:27:38 +0000 (14:27 +0900)
This reverts commit 15ffb6b6f57e0e8152d3e0b647ae3454fbc8cb40.

Change-Id: Ibdbdefc7e542290d335d2ea98a6881b5151c7880
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
drivers/gpu/exynos/g2d/g2d_fence.c

index a23bdccdddd0ed9c372ea1cd51baba96e819f4d0..7469dd3e74ce672eb2e6541df2ac548ffa2bbbf9 100644 (file)
@@ -176,7 +176,7 @@ struct sync_file *g2d_create_release_fence(struct g2d_device *g2d_dev,
 
        for (i = 0; i < data->num_release_fences; i++) {
                release_fences[i] = get_unused_fd_flags(O_CLOEXEC);
-               if ((int)release_fences[i] < 0) {
+               if (release_fences[i] < 0) {
                        ret = release_fences[i];
                        while (i-- > 0)
                                put_unused_fd(release_fences[i]);