diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-11-09 21:57:40 -0500 |
---|---|---|
committer | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2018-11-13 06:07:18 -0500 |
commit | 9ef60bd673d1cd5bab882e0997cadc223670a801 (patch) | |
tree | d3e2182fd8ce0ef5a19bbb4f04f147b24c0b779e | |
parent | 66cae477c380d1a652399908de94ec680225bbdb (diff) |
drm/sti: remove set but not used variable 'priv'
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
commit 9e1f05b28009 ("drm/sti: rename files and functions")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1541818660-37168-1-git-send-email-yuehaibing@huawei.com
-rw-r--r-- | drivers/gpu/drm/sti/sti_crtc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c index 61c2379fba87..ed76e52eb213 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, | |||
252 | struct sti_compositor *compo; | 252 | struct sti_compositor *compo; |
253 | struct drm_crtc *crtc = data; | 253 | struct drm_crtc *crtc = data; |
254 | struct sti_mixer *mixer; | 254 | struct sti_mixer *mixer; |
255 | struct sti_private *priv; | ||
256 | unsigned int pipe; | 255 | unsigned int pipe; |
257 | 256 | ||
258 | priv = crtc->dev->dev_private; | ||
259 | pipe = drm_crtc_index(crtc); | 257 | pipe = drm_crtc_index(crtc); |
260 | compo = container_of(nb, struct sti_compositor, vtg_vblank_nb[pipe]); | 258 | compo = container_of(nb, struct sti_compositor, vtg_vblank_nb[pipe]); |
261 | mixer = compo->mixer[pipe]; | 259 | mixer = compo->mixer[pipe]; |