]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging/android: remove 'destroyed' member from struct sync_timeline
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 31 May 2016 19:59:09 +0000 (16:59 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Jun 2016 04:17:40 +0000 (21:17 -0700)
'destroyed' was set but not used ny anyone.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/sw_sync.c
drivers/staging/android/sync.h

index 72262ba4df7f356e403069f6a158fc84e6be5d8f..1f956b99b880b0eee17469fc7fe0c7d9236f85b1 100644 (file)
@@ -107,11 +107,6 @@ static void sync_timeline_put(struct sync_timeline *obj)
  */
 static void sync_timeline_destroy(struct sync_timeline *obj)
 {
-       obj->destroyed = true;
-       /*
-        * Ensure timeline is marked as destroyed before
-        * changing timeline's fences status.
-        */
        smp_wmb();
 
        sync_timeline_put(obj);
index 3a508515f12b7d2676f95e5a1be7b954e755b985..3c551f5401eed7d5a460e87a3235b4e250fca606 100644 (file)
  * @kref:              reference count on fence.
  * @drv_name:          drv_name of the driver using the sync_timeline
  * @name:              name of the sync_timeline. Useful for debugging
- * @destroyed:         set when sync_timeline is destroyed
  * @child_list_head:   list of children sync_pts for this sync_timeline
- * @child_list_lock:   lock protecting @child_list_head, destroyed, and
- *                     fence.status
+ * @child_list_lock:   lock protecting @child_list_head and fence.status
  * @active_list_head:  list of active (unsignaled/errored) sync_pts
  * @sync_timeline_list:        membership in global sync_timeline_list
  */
@@ -38,7 +36,6 @@ struct sync_timeline {
        char                    name[32];
 
        /* protected by child_list_lock */
-       bool                    destroyed;
        int                     context, value;
 
        struct list_head        child_list_head;