diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-10-05 11:36:58 +0000 |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2018-10-05 14:58:17 -0700 |
commit | 284aff24d67086a94e53dc60f2af4598799a72f0 (patch) | |
tree | 76980d2d0e7f3b379af8232aaee00672865f085c | |
parent | a876c7c9d4e8c4d0705756ded9b93245ec05c783 (diff) |
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>
-rw-r--r-- | vmwgfx_fence.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vmwgfx_fence.c b/vmwgfx_fence.c index 9bedc42..cd37b62 100644 --- a/vmwgfx_fence.c +++ b/vmwgfx_fence.c @@ -925,12 +925,10 @@ static void vmw_event_fence_action_seq_passed(struct vmw_fence_action *action) container_of(action, struct vmw_event_fence_action, action); struct drm_device *dev = eaction->dev; struct drm_pending_event *event = eaction->event; - struct drm_file *file_priv; if (unlikely(event == NULL)) return; - file_priv = event->file_priv; spin_lock(&dev->event_lock); if (likely(eaction->tv_sec != NULL)) { |