提交 71110232 编写于 作者: G Gustavo Padovan 提交者: Greg Kroah-Hartman

staging/android: remove sync_timeline_destroy()

This function was just used by the file release function, so we just fold
its content there and remove sync_timeline_destroy().
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: NSumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 342952d3
...@@ -97,21 +97,6 @@ static void sync_timeline_put(struct sync_timeline *obj) ...@@ -97,21 +97,6 @@ static void sync_timeline_put(struct sync_timeline *obj)
kref_put(&obj->kref, sync_timeline_free); kref_put(&obj->kref, sync_timeline_free);
} }
/**
* sync_timeline_destroy() - destroys a sync object
* @obj: sync_timeline to destroy
*
* A sync implementation should call this when the @obj is going away
* (i.e. module unload.) @obj won't actually be freed until all its children
* fences are freed.
*/
static void sync_timeline_destroy(struct sync_timeline *obj)
{
smp_wmb();
sync_timeline_put(obj);
}
/** /**
* sync_timeline_signal() - signal a status change on a sync_timeline * sync_timeline_signal() - signal a status change on a sync_timeline
* @obj: sync_timeline to signal * @obj: sync_timeline to signal
...@@ -275,7 +260,9 @@ static int sw_sync_debugfs_release(struct inode *inode, struct file *file) ...@@ -275,7 +260,9 @@ static int sw_sync_debugfs_release(struct inode *inode, struct file *file)
{ {
struct sync_timeline *obj = file->private_data; struct sync_timeline *obj = file->private_data;
sync_timeline_destroy(obj); smp_wmb();
sync_timeline_put(obj);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册