Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1514474imu; Fri, 9 Nov 2018 18:48:48 -0800 (PST) X-Google-Smtp-Source: AJdET5cnzNmFxD09RCDYm55leLIrRYohrNt5ZSFz6OEPNHKis27pOLMVeIwn6JCg5wah41vscsit X-Received: by 2002:a17:902:343:: with SMTP id 61-v6mr10848903pld.327.1541818128526; Fri, 09 Nov 2018 18:48:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541818128; cv=none; d=google.com; s=arc-20160816; b=fHq8wn0zs+aIL6KBoyhqRB5tuOuVxvQqCswshaBPQRQ2x6u9LGkLbeklAMnmJ7x1vn 9ICWg8LYCz2V5yMNAfXwCvD/XDIJN6beB488M98pTm/J3PPm7sGNfDW/67Y09jhD0mH5 YjyQ9WIBWrGl6O5c2ccs3HPZkaiSRPjdth6GFAf0P0LaZj6s1LlKgzxCR5QqokAf+U1A fadGs5B77VGGhYd5iEI5Mw6w35aoqudbvkRxwvdXfMDXGuf/mvnDy8hRo7j33SDRWdGV 3cWOpHT5eybRbKTZQYilRgkufi2UpDUukjLG8Fbs12kIQivFp4tWf3F6gtuvhvXvBxKv shZg== 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=jOuH/evL5Z3GJjPpRa/kSQWWI370lSCazSgNuWmfCLU=; b=MjaGyXz3JVAOy2yM9BYb9EluSvGp8nhvtL1iIZLLhvfnNuN5Wm/devo5YZHOwTwdPJ qOvVB0agpuL+hwpmCI6ZEZaZT5Fd2ah6+XrPVDGONvWhcDY0NPs92QlHxQe36HDwQlD8 dcjgQhpn6TPY/si0VRljklv+CwnaAtGsZmpSLqvbkYFKnb0B4uBPX9zRw6rteyLTbG2j O6jdNPWebEr7e/vmNvaqp8IwP0G8Any6l0qD4CzVmmSoEaK6hUvBjadEoAmg5zZEszag DVmS3h3e+rYAzHn6KoUi8a7HzpS7lSm/ejO+HUwuSaYwznSrsqCKquILkMsAuT9vQVsR S/FA== 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 d38-v6si7848483pgd.318.2018.11.09.18.48.32; Fri, 09 Nov 2018 18:48:48 -0800 (PST) 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 S1728580AbeKJMbe (ORCPT + 99 others); Sat, 10 Nov 2018 07:31:34 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:33920 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728094AbeKJMbe (ORCPT ); Sat, 10 Nov 2018 07:31:34 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 50DCEF0EB720A; Sat, 10 Nov 2018 10:48:07 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.408.0; Sat, 10 Nov 2018 10:48:02 +0800 From: YueHaibing To: Benjamin Gaignard , Vincent Abriou , David Airlie CC: YueHaibing , , , Subject: [PATCH -next] drm/sti: remove set but not used variable 'priv' Date: Sat, 10 Nov 2018 02:57:40 +0000 Message-ID: <1541818660-37168-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/sti/sti_crtc.c: In function 'sti_crtc_vblank_cb': drivers/gpu/drm/sti/sti_crtc.c:255:22: warning: variable 'priv' set but not used [-Wunused-but-set-variable] It never used since introduction in 9e1f05b28009 ("drm/sti: rename files and functions") Signed-off-by: YueHaibing --- drivers/gpu/drm/sti/sti_crtc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c index 61c2379..ed76e52e 100644 --- a/drivers/gpu/drm/sti/sti_crtc.c +++ b/drivers/gpu/drm/sti/sti_crtc.c @@ -252,10 +252,8 @@ int sti_crtc_vblank_cb(struct notifier_block *nb, struct sti_compositor *compo; struct drm_crtc *crtc = data; struct sti_mixer *mixer; - struct sti_private *priv; unsigned int pipe; - priv = crtc->dev->dev_private; pipe = drm_crtc_index(crtc); compo = container_of(nb, struct sti_compositor, vtg_vblank_nb[pipe]); mixer = compo->mixer[pipe];