VirtualBox

Changeset 57839 in vbox for trunk


Ignore:
Timestamp:
Sep 21, 2015 3:18:07 PM (9 years ago)
Author:
vboxsync
Message:

HostDrivers/linux: don't check the error code of misc_deregister(), this doesn't work in Linux 4.3 and it's useless anyway

Location:
trunk/src/VBox/HostDrivers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r57358 r57839  
    486486     */
    487487#ifdef CONFIG_VBOXDRV_AS_MISC
    488     rc = misc_deregister(&gMiscDeviceUsr);
    489     if (rc < 0)
    490     {
    491         Log(("misc_deregister failed with rc=%#x on vboxdrvu\n", rc));
    492     }
    493     rc = misc_deregister(&gMiscDeviceSys);
    494     if (rc < 0)
    495     {
    496         Log(("misc_deregister failed with rc=%#x on vboxdrv\n", rc));
    497     }
     488    misc_deregister(&gMiscDeviceUsr);
     489    misc_deregister(&gMiscDeviceSys);
    498490#else  /* !CONFIG_VBOXDRV_AS_MISC */
    499491# ifdef CONFIG_DEVFS_FS
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c

    r57358 r57839  
    437437    vboxNetAdpShutdown();
    438438    /* Remove control device */
    439     rc = misc_deregister(&g_CtlDev);
    440     if (rc < 0)
    441     {
    442         printk(KERN_ERR "misc_deregister failed with rc=%x\n", rc);
    443     }
     439    misc_deregister(&g_CtlDev);
    444440
    445441    RTR0Term();
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