mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 20:47:21 +00:00
- Return early if there aren't any packets to be sent
- Fixes coverity error 458 svn path=/branches/aicom-network-fixes/; revision=36527
This commit is contained in:
parent
d9db39f82d
commit
0820ee7a4e
1 changed files with 2 additions and 0 deletions
|
@ -545,6 +545,8 @@ static VOID NICStartTransmit(
|
|||
|
||||
NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
|
||||
|
||||
if (Adapter->TXCurrent < 0) return;
|
||||
|
||||
//FrameStart = Adapter->TXStart + Adapter->TXCurrent * DRIVER_BLOCK_SIZE;
|
||||
//FrameStart = Adapter->TXStart;
|
||||
FrameStart = (UCHAR)(Adapter->TXStart + (UCHAR)(Adapter->TXCurrent * BUFFERS_PER_TX_BUF));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue