VirtualBox

Changeset 44721 in vbox for trunk/src/VBox/Devices/VMMDev


Ignore:
Timestamp:
Feb 15, 2013 5:54:02 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83822
Message:

VMMDev: Removed pointless pThis check in vmmdevIPort_VBVAChange. (The caller is calling this method thru the method table pInterface points to, we just do some pointer arithmetic to calculate the pThis pointer, so it won't be NULL.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r44720 r44721  
    29192919{
    29202920    PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDEV, IPort);
    2921 
    29222921    Log(("vmmdevIPort_VBVAChange: fEnabled = %d\n", fEnabled));
    29232922
    2924     if (pThis)
    2925     {
    2926         pThis->u32VideoAccelEnabled = fEnabled;
    2927     }
    2928     return;
     2923    pThis->u32VideoAccelEnabled = fEnabled;
    29292924}
    29302925
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