Date: Wed, 9 Sep 2009 03:36:44 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197010 - head/sys/net Message-ID: <200909090336.n893aiiM071255@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909090336.n893aiiM071255>