summaryrefslogtreecommitdiff
path: root/sys/dev/le
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2017-02-20 03:43:12 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2017-02-20 03:43:12 +0000
commit4d24901ac9131267fd188c5e1ee19a219847238a (patch)
treec6b56412f6ca4e7ffd1dc366d2fc51f7fa34600f /sys/dev/le
parent85161825cf4af1294d9464badbe675a1419bd4fd (diff)
Notes
Diffstat (limited to 'sys/dev/le')
-rw-r--r--sys/dev/le/am7990.c2
-rw-r--r--sys/dev/le/am79900.c2
-rw-r--r--sys/dev/le/lance.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/le/am7990.c b/sys/dev/le/am7990.c
index a21be28a4c13..32c2e1e65e80 100644
--- a/sys/dev/le/am7990.c
+++ b/sys/dev/le/am7990.c
@@ -519,7 +519,7 @@ am7990_start_locked(struct lance_softc *sc)
}
IFQ_DRV_DEQUEUE(&ifp->if_snd, m);
- if (m == 0)
+ if (m == NULL)
break;
/*
diff --git a/sys/dev/le/am79900.c b/sys/dev/le/am79900.c
index 74f9e5c802f3..cb6a31f30b5f 100644
--- a/sys/dev/le/am79900.c
+++ b/sys/dev/le/am79900.c
@@ -557,7 +557,7 @@ am79900_start_locked(struct lance_softc *sc)
}
IFQ_DRV_DEQUEUE(&ifp->if_snd, m);
- if (m == 0)
+ if (m == NULL)
break;
/*
diff --git a/sys/dev/le/lance.c b/sys/dev/le/lance.c
index f8a333b9fd5c..2eee7af1b8ba 100644
--- a/sys/dev/le/lance.c
+++ b/sys/dev/le/lance.c
@@ -418,7 +418,7 @@ lance_get(struct lance_softc *sc, int boff, int totlen)
totlen -= len;
if (totlen > 0) {
MGET(newm, M_NOWAIT, MT_DATA);
- if (newm == 0)
+ if (newm == NULL)
goto bad;
len = MLEN;
m = m->m_next = newm;