mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 09:09:32 +03:00
[build] Fix uses of literal 0 as a NULL pointer
Detected using sparse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -389,7 +389,7 @@ static void t515_reset(struct nic *nic)
|
||||
outb(PKT_BUF_SZ >> 8, nic->ioaddr + TxFreeThreshold); /* Room for a packet. */
|
||||
/* Clear the Tx ring. */
|
||||
for (i = 0; i < TX_RING_SIZE; i++)
|
||||
vp->tx_skbuff[i] = 0;
|
||||
vp->tx_skbuff[i] = NULL;
|
||||
outl(0, nic->ioaddr + DownListPtr);
|
||||
}
|
||||
/* Set receiver mode: presumably accept b-case and phys addr only. */
|
||||
|
||||
Reference in New Issue
Block a user