Fix an order of operations buglet. ! has higher precedence than &. This
should fix the warnings about bpf not calling make_dev().
This commit is contained in:
parent
09aafe5402
commit
d1d74c2886
@ -363,7 +363,7 @@ bpfopen(dev, flags, fmt, p)
|
||||
*/
|
||||
if (d)
|
||||
return (EBUSY);
|
||||
if (!dev->si_flags & SI_NAMED)
|
||||
if ((dev->si_flags & SI_NAMED) == 0)
|
||||
make_dev(&bpf_cdevsw, minor(dev), UID_ROOT, GID_WHEEL, 0600,
|
||||
"bpf%d", dev2unit(dev));
|
||||
MALLOC(d, struct bpf_d *, sizeof(*d), M_BPF, M_WAITOK);
|
||||
|
Loading…
Reference in New Issue
Block a user