VirtualBox

Changeset 93564 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Feb 3, 2022 7:31:00 AM (3 years ago)
Author:
vboxsync
Message:

DevDP8390/3C501: Removed unneeded inline functions.

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

Legend:

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

    r93563 r93564  
    937937    }
    938938    return rc;
    939 }
    940 
    941 
    942 /**
    943  * Frees an unsent buffer.
    944  *
    945  * @param   pThis           The device instance.
    946  * @param   fLoopback       Set if we're in loopback mode.
    947  * @param   pSgBuf          The SG to free.  Can be NULL.
    948  */
    949 DECLINLINE(void) elnkXmitFreeBuf(PELNKSTATE pThis, bool fLoopback, PPDMSCATTERGATHER pSgBuf)
    950 {
    951     if (pSgBuf)
    952     {
    953         if (RT_UNLIKELY(fLoopback))
    954             pSgBuf->pvAllocator = NULL;
    955         else
    956         {
    957             PPDMINETWORKUP pDrv = pThis->CTX_SUFF(pDrv);
    958             if (RT_LIKELY(pDrv))
    959                 pDrv->pfnFreeBuf(pDrv, pSgBuf);
    960         }
    961     }
    962939}
    963940
  • trunk/src/VBox/Devices/Network/DevDP8390.cpp

    r93562 r93564  
    17571757
    17581758/**
    1759  * Frees an unsent buffer.
    1760  *
    1761  * @param   pThis           The device instance.
    1762  * @param   fLoopback       Set if we're in loopback mode.
    1763  * @param   pSgBuf          The SG to free.  Can be NULL.
    1764  */
    1765 DECLINLINE(void) dp8390XmitFreeBuf(PDPNICSTATE pThis, bool fLoopback, PPDMSCATTERGATHER pSgBuf)
    1766 {
    1767     if (pSgBuf)
    1768     {
    1769         if (RT_UNLIKELY(fLoopback))
    1770             pSgBuf->pvAllocator = NULL;
    1771         else
    1772         {
    1773             PPDMINETWORKUP pDrv = pThis->CTX_SUFF(pDrv);
    1774             if (RT_LIKELY(pDrv))
    1775                 pDrv->pfnFreeBuf(pDrv, pSgBuf);
    1776         }
    1777     }
    1778 }
    1779 
    1780 
    1781 /**
    17821759 * Sends the scatter/gather buffer.
    17831760 *
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