summaryrefslogtreecommitdiff
path: root/drivers/staging/android/sync_debug.c
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2016-04-28 13:46:53 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-30 00:37:10 (GMT)
commitd7c3110c28dee67f6766ae26cac629358233a6b4 (patch)
treec5f82120de5b45733a6d1c0acc0b8b305443e2af /drivers/staging/android/sync_debug.c
parent10e362c387e45f01cc38f62dec8f0bc3f1d676b5 (diff)
downloadlinux-d7c3110c28dee67f6766ae26cac629358233a6b4.tar.xz
staging/android: remove name arg from sync_file_create()
Simplifies the API to only receive the fence it needs to add to the sync and create a name for the sync_file based on the fence context and seqno. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/sync_debug.c')
-rw-r--r--drivers/staging/android/sync_debug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/android/sync_debug.c b/drivers/staging/android/sync_debug.c
index e4b0e41..2cab40d 100644
--- a/drivers/staging/android/sync_debug.c
+++ b/drivers/staging/android/sync_debug.c
@@ -262,8 +262,7 @@ static long sw_sync_ioctl_create_fence(struct sw_sync_timeline *obj,
goto err;
}
- data.name[sizeof(data.name) - 1] = '\0';
- sync_file = sync_file_create(data.name, fence);
+ sync_file = sync_file_create(fence);
if (!sync_file) {
fence_put(fence);
err = -ENOMEM;