Compare pointer with NULL, not 0.

This commit is contained in:
Ed Maste 2009-09-09 03:36:43 +00:00
parent 884e6d6087
commit 1bdc73d337
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197010

View file

@ -1364,7 +1364,7 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
}
p = ifunit(vlr.vlr_parent);
if (p == 0) {
if (p == NULL) {
error = ENOENT;
break;
}