VirtualBox

Changeset 31097 in vbox


Ignore:
Timestamp:
Jul 26, 2010 8:59:43 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64049
Message:

RT_LIKELY misusage

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r30722 r31097  
    15801580{
    15811581#ifdef DEBUG
    1582     if (RT_LIKELY(e1kCsEnter(pState, VERR_SEM_BUSY)) == VINF_SUCCESS)
     1582    if (RT_LIKELY(e1kCsEnter(pState, VERR_SEM_BUSY) == VINF_SUCCESS))
    15831583    {
    15841584        E1kLog(("%s --- %s packet #%d: ---\n",
     
    15881588    }
    15891589#else
    1590     if (RT_LIKELY(e1kCsEnter(pState, VERR_SEM_BUSY)) == VINF_SUCCESS)
     1590    if (RT_LIKELY(e1kCsEnter(pState, VERR_SEM_BUSY) == VINF_SUCCESS))
    15911591    {
    15921592        E1kLogRel(("E1000: %s packet #%d, seq=%x ack=%x\n", cszText, pState->u32PktNo++, ntohl(*(uint32_t*)(cpPacket+0x26)), ntohl(*(uint32_t*)(cpPacket+0x2A))));
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r30016 r31097  
    469469        rc = RTReqCallVoid((data)->pReqQueue, &pReq, 0 /*cMillies*/,    \
    470470                           (PFNRT)tcp_output 2, data, sotcb);           \
    471         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     471        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    472472        {                                                               \
    473473            SOCKET_UNLOCK(so);                                          \
     
    496496        rc = RTReqCallVoid((data)->pReqQueue, &pReq, 0 /*cMillies*/,    \
    497497                           (PFNRT)tcp_connect, 2, data, so);            \
    498         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     498        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    499499        {                                                               \
    500500            SOCKET_UNLOCK(so);                                          \
     
    515515                           (PFNRT)soread_queue, 4,                      \
    516516                           data, so, ifclose, &(ret));                  \
    517         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     517        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    518518        {                                                               \
    519519            SOCKET_UNLOCK(so);                                          \
     
    533533        rc = RTReqCall((data)->pReqQueue, &pReq, 0 /*cMillies*/,        \
    534534                       (PFNRT)sowrite, 2, data, so);                    \
    535         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     535        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    536536        {                                                               \
    537537            SOCKET_UNLOCK(so);                                          \
     
    551551        rc = RTReqCallVoid((data)->pReqQueue, &pReq, 0 /*cMillies */,   \
    552552                           (PFNRT)sorecvfrom, 2, data, so);             \
    553         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     553        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    554554        {                                                               \
    555555            SOCKET_UNLOCK(so);                                          \
     
    569569        rc = RTReqCallVoid((data)->pReqQueue, &pReq, 0 /* cMillies*/,   \
    570570                           (PFNRT)udp_detach, 2, data, so);             \
    571         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     571        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    572572        {                                                               \
    573573            SOCKET_UNLOCK(so);                                          \
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