VirtualBox

Changeset 62462 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 22, 2016 4:32:35 PM (8 years ago)
Author:
vboxsync
Message:

USBProxyDevice: Please not TABs, learn the effing operator table, and get with the program on how we format more complicated IF statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/USBProxyDevice.cpp

    r61247 r62462  
    112112            rc = pProxyDev->pOps->pfnUrbCancel(pProxyDev, &Urb);
    113113            AssertRC(rc);
    114             /** @todo: This breaks the comment above... */
     114            /** @todo This breaks the comment above... */
    115115            pUrbReaped = pProxyDev->pOps->pfnUrbReap(pProxyDev, RT_INDEFINITE_WAIT);
    116116        }
     
    163163        }
    164164
    165         if ((cbDesc > (Urb.cbData - sizeof(VUSBSETUP))))
     165        if (cbDesc > Urb.cbData - sizeof(VUSBSETUP))
    166166        {
    167167            Log(("GetStdDescSync: Descriptor length too short, cbDesc=%u, Urb.cbData=%u\n", cbDesc, Urb.cbData));
     
    169169        }
    170170
    171         if ((cbInitialHint != cbHint) &&
    172                 ((cbDesc != cbHint) || (Urb.cbData < cbInitialHint)))
     171        if (   cbInitialHint != cbHint
     172            && (   cbDesc != cbHint
     173                || Urb.cbData < cbInitialHint) )
    173174        {
    174175            Log(("GetStdDescSync: Descriptor length incorrect, cbDesc=%u, Urb.cbData=%u, cbHint=%u\n", cbDesc, Urb.cbData, cbHint));
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