diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-10-05 07:36:58 -0400 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2018-12-05 04:09:27 -0500 |
commit | e5bd6a3dddda58b0b5a246b35faadd844b0ff574 (patch) | |
tree | a5f621d64eb4aebf8429ae520e54cceb1a354723 | |
parent | ec9a5b611e2fde765372885220555a5b38e13c09 (diff) |
drm/vmwgfx: Remove set but not used variable 'file_priv'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c: In function 'vmw_event_fence_action_seq_passed':
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:909:19: warning:
variable 'file_priv' set but not used [-Wunused-but-set-variable]
struct drm_file *file_priv;
It not used any more since
commit fb740cf2492c ("drm: Create drm_send_event helpers")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c index f87261545f2c..301260e23e52 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | |||
@@ -906,13 +906,10 @@ static void vmw_event_fence_action_seq_passed(struct vmw_fence_action *action) | |||
906 | container_of(action, struct vmw_event_fence_action, action); | 906 | container_of(action, struct vmw_event_fence_action, action); |
907 | struct drm_device *dev = eaction->dev; | 907 | struct drm_device *dev = eaction->dev; |
908 | struct drm_pending_event *event = eaction->event; | 908 | struct drm_pending_event *event = eaction->event; |
909 | struct drm_file *file_priv; | ||
910 | |||
911 | 909 | ||
912 | if (unlikely(event == NULL)) | 910 | if (unlikely(event == NULL)) |
913 | return; | 911 | return; |
914 | 912 | ||
915 | file_priv = event->file_priv; | ||
916 | spin_lock_irq(&dev->event_lock); | 913 | spin_lock_irq(&dev->event_lock); |
917 | 914 | ||
918 | if (likely(eaction->tv_sec != NULL)) { | 915 | if (likely(eaction->tv_sec != NULL)) { |