summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/bpf
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/io/bpf')
-rw-r--r--usr/src/uts/common/io/bpf/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/bpf/bpf.c b/usr/src/uts/common/io/bpf/bpf.c
index 59c71f8d4b..564637f824 100644
--- a/usr/src/uts/common/io/bpf/bpf.c
+++ b/usr/src/uts/common/io/bpf/bpf.c
@@ -294,7 +294,7 @@ next:
MBPF_CLIENT_CLOSE(bpr, mcip);
mcip = 0;
}
- if (mh != NULL) {
+ if (mh != 0) {
MBPF_CLOSE(bpr, mh);
mh = 0;
}
@@ -1386,7 +1386,7 @@ bpf_ifname(struct bpf_d *d, char *buffer, int bufsize)
{
mutex_enter(&d->bd_lock);
- if (d->bd_bif == NULL) {
+ if (d->bd_bif == 0) {
mutex_exit(&d->bd_lock);
return (EINVAL);
}