mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
Compare pointer with NULL, not 0.
This commit is contained in:
parent
884e6d6087
commit
1bdc73d337
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197010
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue