revert "sync_file: Return consistent status in SYNC_IOC_FILE_INFO [2/3]"

This reverts commit fe912ab314899e3add2993c630c15d28638a3348.

This reverts part commit of ARM and reserved original commit in upstread.

Change-Id: I4e0f39bee86342cd89aa2fb8f10c81f92e4b1985
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
This commit is contained in:
binqi.zhang
2017-12-08 20:04:25 +08:00
committed by Jianxin Pan
parent b26a613a44
commit 942dd16d98

View File

@@ -173,9 +173,10 @@ static struct fence **get_fences(struct sync_file *sync_file, int *num_fences)
static void add_fence(struct fence **fences, int *i, struct fence *fence)
{
fences[*i] = fence;
if (!fence_is_signaled(fence)) {
fence_get(fence);
(*i)++;
}
}
/**