VirtualBox

Changeset 74808 in vbox for trunk


Ignore:
Timestamp:
Oct 12, 2018 4:10:55 PM (6 years ago)
Author:
vboxsync
Message:

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: Paolo Cretaro <paolocretaro@…>
Acked-by: Hans de Goede <hdegoede@…>
Acked-by: Michael Thayer <michael.thayer@…>
Signed-off-by: Greg Kroah-Hartman <gregkh@…>

Back-ported from Linux staging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r74780 r74808  
    6161        struct vbox_private *vbox;
    6262        int width, height, bpp, pitch;
    63         unsigned int crtc_id;
    6463        u16 flags;
    6564        s32 x_offset, y_offset;
     
    6867        width = mode->hdisplay ? mode->hdisplay : 640;
    6968        height = mode->vdisplay ? mode->vdisplay : 480;
    70         crtc_id = vbox_crtc->crtc_id;
    7169#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75)
    7270        bpp = crtc->enabled ? CRTC_FB(crtc)->format->cpp[0] * 8 : 32;
     
    581579static void vbox_connector_destroy(struct drm_connector *connector)
    582580{
    583         struct vbox_connector *vbox_connector;
    584 
    585         vbox_connector = to_vbox_connector(connector);
    586581#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) && !defined(RHEL_72)
    587582        drm_sysfs_connector_remove(connector);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette