mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-11 09:29:40 +00:00
Changed 0 to NULL to indicate we are dealing with a pointer.
This commit is contained in:
parent
b484f95228
commit
d10e0349e2
|
@ -398,7 +398,7 @@ static struct pbuf *cs8900_input(struct netif *netif)
|
|||
{
|
||||
// allocate a pbuf chain with total length 'len'
|
||||
p = pbuf_alloc(PBUF_RAW, len, PBUF_POOL);
|
||||
if (p != 0)
|
||||
if (p != NULL)
|
||||
{
|
||||
for (q = p; q != 0; q = q->next)
|
||||
{
|
||||
|
@ -506,11 +506,11 @@ static void cs8900_service(struct netif *netif)
|
|||
#if (CS8900_STATS > 0)
|
||||
else if ((irq_status & 0x003fU) == 0x0010U/*RxMISS Event*/)
|
||||
{
|
||||
miss_count += (irq_status >> 6);
|
||||
miss_count += (irq_status >> 6);
|
||||
}
|
||||
else if ((irq_status & 0x003fU) == 0x0012U/*TxCOL Event*/)
|
||||
{
|
||||
coll_count += (irq_status >> 6);
|
||||
coll_count += (irq_status >> 6);
|
||||
}
|
||||
#endif
|
||||
/* read ISQ register */
|
||||
|
|
Loading…
Reference in New Issue
Block a user