Commit 91b313d2 authored by Paolo Cretaro's avatar Paolo Cretaro Committed by Greg Kroah-Hartman

staging: vboxvideo: remove unused variables

Fix compiler warnings:
vbox_mode.c:57:15: warning: variable ‘crtc_id’ set but not used
vbox_mode.c:581:25: warning: variable ‘vbox_connector’ set but not used
Signed-off-by: default avatarPaolo Cretaro <paolocretaro@gmail.com>
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarMichael Thayer <michael.thayer@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1df583ab
...@@ -54,14 +54,12 @@ static void vbox_do_modeset(struct drm_crtc *crtc, ...@@ -54,14 +54,12 @@ static void vbox_do_modeset(struct drm_crtc *crtc,
struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc); struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
struct vbox_private *vbox; struct vbox_private *vbox;
int width, height, bpp, pitch; int width, height, bpp, pitch;
unsigned int crtc_id;
u16 flags; u16 flags;
s32 x_offset, y_offset; s32 x_offset, y_offset;
vbox = crtc->dev->dev_private; vbox = crtc->dev->dev_private;
width = mode->hdisplay ? mode->hdisplay : 640; width = mode->hdisplay ? mode->hdisplay : 640;
height = mode->vdisplay ? mode->vdisplay : 480; height = mode->vdisplay ? mode->vdisplay : 480;
crtc_id = vbox_crtc->crtc_id;
bpp = crtc->enabled ? CRTC_FB(crtc)->format->cpp[0] * 8 : 32; bpp = crtc->enabled ? CRTC_FB(crtc)->format->cpp[0] * 8 : 32;
pitch = crtc->enabled ? CRTC_FB(crtc)->pitches[0] : width * bpp / 8; pitch = crtc->enabled ? CRTC_FB(crtc)->pitches[0] : width * bpp / 8;
x_offset = vbox->single_framebuffer ? crtc->x : vbox_crtc->x_hint; x_offset = vbox->single_framebuffer ? crtc->x : vbox_crtc->x_hint;
...@@ -578,9 +576,6 @@ static int vbox_mode_valid(struct drm_connector *connector, ...@@ -578,9 +576,6 @@ static int vbox_mode_valid(struct drm_connector *connector,
static void vbox_connector_destroy(struct drm_connector *connector) static void vbox_connector_destroy(struct drm_connector *connector)
{ {
struct vbox_connector *vbox_connector;
vbox_connector = to_vbox_connector(connector);
drm_connector_unregister(connector); drm_connector_unregister(connector);
drm_connector_cleanup(connector); drm_connector_cleanup(connector);
kfree(connector); kfree(connector);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment