VirtualBox

Ignore:
Timestamp:
Feb 24, 2016 9:06:26 AM (9 years ago)
Author:
vboxsync
Message:

tabs (gcc-6 complains about wrong indent of line 78)

File:
1 edited

Legend:

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

    r59634 r59794  
    6262irqreturn_t vbox_irq_handler(int irq, void *arg)
    6363{
    64         struct drm_device *dev = (struct drm_device *) arg;
    65         struct vbox_private *vbox = (struct vbox_private *)dev->dev_private;
    66         uint32_t host_flags = vbox_get_flags(vbox);
     64    struct drm_device *dev = (struct drm_device *) arg;
     65    struct vbox_private *vbox = (struct vbox_private *)dev->dev_private;
     66    uint32_t host_flags = vbox_get_flags(vbox);
    6767
    68         if (!(host_flags & HGSMIHOSTFLAGS_IRQ))
    69                 return IRQ_NONE;
     68    if (!(host_flags & HGSMIHOSTFLAGS_IRQ))
     69        return IRQ_NONE;
    7070
    7171    /* Due to a bug in the initial host implementation of hot-plug interrupts,
     
    7676        && !(host_flags & HGSMIHOSTFLAGS_VSYNC))
    7777        schedule_work(&vbox->hotplug_work);
    78         vbox_clear_irq();
    79         return IRQ_HANDLED;
     78    vbox_clear_irq();
     79    return IRQ_HANDLED;
    8080}
    8181
     
    121121static void vbox_hotplug_worker(struct work_struct *work)
    122122{
    123         struct vbox_private *vbox = container_of(work, struct vbox_private,
     123    struct vbox_private *vbox = container_of(work, struct vbox_private,
    124124                                             hotplug_work);
    125125
     
    133133int vbox_irq_init(struct vbox_private *vbox)
    134134{
    135         int ret;
     135    int ret;
    136136
    137137    LogFunc(("vboxvideo: %d: vbox=%p\n", __LINE__, vbox));
    138138    vbox_update_mode_hints(vbox);
    139         ret = drm_irq_install(vbox->dev, vbox->dev->pdev->irq);
    140         if (unlikely(ret != 0)) {
    141             vbox_irq_fini(vbox);
    142                 DRM_ERROR("Failed installing irq: %d\n", ret);
    143                 return 1;
    144         }
    145         INIT_WORK(&vbox->hotplug_work, vbox_hotplug_worker);
    146         vbox->isr_installed = true;
     139    ret = drm_irq_install(vbox->dev, vbox->dev->pdev->irq);
     140    if (unlikely(ret != 0)) {
     141        vbox_irq_fini(vbox);
     142        DRM_ERROR("Failed installing irq: %d\n", ret);
     143        return 1;
     144    }
     145    INIT_WORK(&vbox->hotplug_work, vbox_hotplug_worker);
     146    vbox->isr_installed = true;
    147147    LogFunc(("vboxvideo: %d: vbox=%p\n", __LINE__, vbox));
    148         return 0;
     148    return 0;
    149149}
    150150
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