VirtualBox

Changeset 60027 in vbox


Ignore:
Timestamp:
Mar 15, 2016 10:28:05 AM (9 years ago)
Author:
vboxsync
Message:

Storage/VD: Remove unnecessary condition (thanks PVS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VD.cpp

    r59462 r60027  
    1087410874    } while (0);
    1087510875
    10876     if (RT_UNLIKELY(fLockRead) && (   rc == VINF_VD_ASYNC_IO_FINISHED
    10877                                    || rc != VERR_VD_ASYNC_IO_IN_PROGRESS))
     10876    if (RT_UNLIKELY(fLockRead) && (rc != VERR_VD_ASYNC_IO_IN_PROGRESS))
    1087810877    {
    1087910878        rc2 = vdThreadFinishRead(pDisk);
     
    1094510944    } while (0);
    1094610945
    10947     if (RT_UNLIKELY(fLockWrite) && (   rc == VINF_VD_ASYNC_IO_FINISHED
    10948                                     || rc != VERR_VD_ASYNC_IO_IN_PROGRESS))
     10946    if (RT_UNLIKELY(fLockWrite) && (rc != VERR_VD_ASYNC_IO_IN_PROGRESS))
    1094910947    {
    1095010948        rc2 = vdThreadFinishWrite(pDisk);
     
    1100211000    } while (0);
    1100311001
    11004     if (RT_UNLIKELY(fLockWrite) && (   rc == VINF_VD_ASYNC_IO_FINISHED
    11005                                     || rc != VERR_VD_ASYNC_IO_IN_PROGRESS))
     11002    if (RT_UNLIKELY(fLockWrite) && (rc != VERR_VD_ASYNC_IO_IN_PROGRESS))
    1100611003    {
    1100711004        rc2 = vdThreadFinishWrite(pDisk);
     
    1105811055    } while (0);
    1105911056
    11060     if (RT_UNLIKELY(fLockWrite) && (   rc == VINF_VD_ASYNC_IO_FINISHED
    11061                                     || rc != VERR_VD_ASYNC_IO_IN_PROGRESS))
     11057    if (RT_UNLIKELY(fLockWrite) && (rc != VERR_VD_ASYNC_IO_IN_PROGRESS))
    1106211058    {
    1106311059        rc2 = vdThreadFinishWrite(pDisk);
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