VirtualBox

Changeset 50780 in vbox


Ignore:
Timestamp:
Mar 14, 2014 1:35:15 AM (11 years ago)
Author:
vboxsync
Message:

Condition ? 1 : 0 is pleonastic. While here, declare the flag bool.

File:
1 edited

Legend:

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

    r50779 r50780  
    352352    const char* currentDriver;
    353353    uint16_t uVendor, uDevice;
    354     int fDetach = 0;
     354    bool fDetach = 0;
    355355
    356356    if (!g_VBoxPciGlobals.fPciStubModuleAvail)
     
    379379           currentDriver ? currentDriver : "<none>");
    380380
    381     fDetach = (currentDriver == NULL  || (strcmp(currentDriver, PCI_STUB_MODULE) != 0)) ? 1 : 0;
     381    fDetach = (currentDriver == NULL || (strcmp(currentDriver, PCI_STUB_MODULE) != 0));
    382382
    383383    /* Init previous driver data. */
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