Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp317291imm; Fri, 5 Oct 2018 04:26:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV63UkcPi3qgqFPXmqeQqZgSJvy/nWsSOmiSORpZaGZOWLxQd7Kj8xPpUlDyBm/jbT2/56QTG X-Received: by 2002:a17:902:8f90:: with SMTP id z16-v6mr10662237plo.329.1538738761879; Fri, 05 Oct 2018 04:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538738761; cv=none; d=google.com; s=arc-20160816; b=vWGhV0JEhOqWz5aa+5bXolvTvod7Cfeny+8xlyYbCHRrMeyEcN9dCNIEQ4PJtbXsFq +l/4lrYT1tm6iDmY6aLzb4ol3yOxr4+aAf7vut5wKRfSKIxQG7txGdQtL5Pu63RmGRa8 4o6g/qYCOjHEkvxQ/LJI+S7k7Qk5LwINTVmaHGkaCi8m4f6K0uVRfnwCt3eobrixp1f0 a2nWMBR3N3odP/nfN2TobP4JYBJBGur9+hrjMLzVnpG0bhvFK9QHXwctvgnTJFNwXYa0 2BrQGQHN5kL7+CeFw3fzVzIWYUrdneRoGMfGNATNe8stdnSro3cL6m1NaS8LQp29+0xt b7zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from; bh=T9lLGT9pPSRfw7JN9R8+plobOfnLaKVNBe6VFBYdLOk=; b=CNpv/YDGztaqVp+7hDIYbt5yXOURLjxdN6V0LT5BLCPLPZg4aEuRQ7qaXhBMLHazMC NmfwQA61w9Si9AwDKn314SYK/SIBUHSswqQCTo6IaVSQ2+LA0bq+8Yn9Ffv4ZXVK9MIs s633nihgcF5YGOJtqDXzO8J56TDKOwFYstUOLDmDHbNTqCrXxzJQwqEPtSJABfdiUeVI iVKZay4lIU3h9+QeS2kLqbLQOIOxvyPMFh8PUo39/9tzAR0e1Zl25yTGyWo651ewTeb1 I5G0dTBB8YF2WBzTWsGleyaksQEbWBEwxeyxk8FDIeTHi00atSXuSZ4rqhyX7c9C4WQ3 yJfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2-v6si6395737pga.521.2018.10.05.04.25.44; Fri, 05 Oct 2018 04:26:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728061AbeJESYA (ORCPT + 99 others); Fri, 5 Oct 2018 14:24:00 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13598 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727581AbeJESYA (ORCPT ); Fri, 5 Oct 2018 14:24:00 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B8AAF1B97ACFA; Fri, 5 Oct 2018 19:25:35 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.399.0; Fri, 5 Oct 2018 19:25:27 +0800 From: YueHaibing To: VMware Graphics , Sinclair Yeh , Thomas Hellstrom , David Airlie CC: YueHaibing , , , Subject: [PATCH -next] drm/vmwgfx: Remove set but not used variable 'file_priv' Date: Fri, 5 Oct 2018 11:36:58 +0000 Message-ID: <1538739418-151469-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c index f872615..301260e 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) 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_irq(&dev->event_lock); if (likely(eaction->tv_sec != NULL)) {