svn commit: r197010 - head/sys/net
Ed Maste
emaste at FreeBSD.org
Wed Sep 9 03:36:44 UTC 2009
Author: emaste
Date: Wed Sep 9 03:36:43 2009
New Revision: 197010
URL: http://svn.freebsd.org/changeset/base/197010
Log:
Compare pointer with NULL, not 0.
Modified:
head/sys/net/if_vlan.c
Modified: head/sys/net/if_vlan.c
==============================================================================
--- head/sys/net/if_vlan.c Wed Sep 9 01:19:26 2009 (r197009)
+++ head/sys/net/if_vlan.c Wed Sep 9 03:36:43 2009 (r197010)
@@ -1364,7 +1364,7 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd
break;
}
p = ifunit(vlr.vlr_parent);
- if (p == 0) {
+ if (p == NULL) {
error = ENOENT;
break;
}
More information about the svn-src-all
mailing list