diff options
author | ed <ed@FreeBSD.org> | 2011-10-18 08:09:44 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-10-18 08:09:44 +0000 |
commit | 832b15d2892554b2c0a2cee0eed9ac42c333606b (patch) | |
tree | eb0defb246740f5e1409bc9224c1136f3e8ddbe3 /sys/net | |
parent | 9ae319147303a93acadebefb29731814c8bad338 (diff) | |
download | FreeBSD-src-832b15d2892554b2c0a2cee0eed9ac42c333606b.zip FreeBSD-src-832b15d2892554b2c0a2cee0eed9ac42c333606b.tar.gz |
Get rid of D_PSEUDO.
It seems the D_PSEUDO flag was meant to allow make_dev() to return NULL.
Nowadays we have a different interface for that; make_dev_p(). There's
no need to keep it there.
While there, remove an unneeded D_NEEDMINOR from the gpio driver.
Discussed with: gonzo@ (gpio)
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_tap.c | 2 | ||||
-rw-r--r-- | sys/net/if_tun.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c index 08c669a..4ae5a3d 100644 --- a/sys/net/if_tap.c +++ b/sys/net/if_tap.c @@ -132,7 +132,7 @@ static struct filterops tap_write_filterops = { static struct cdevsw tap_cdevsw = { .d_version = D_VERSION, - .d_flags = D_PSEUDO | D_NEEDMINOR, + .d_flags = D_NEEDMINOR, .d_open = tapopen, .d_close = tapclose, .d_read = tapread, diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index c532884..57a11f9 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -165,7 +165,7 @@ static struct filterops tun_write_filterops = { static struct cdevsw tun_cdevsw = { .d_version = D_VERSION, - .d_flags = D_PSEUDO | D_NEEDMINOR, + .d_flags = D_NEEDMINOR, .d_open = tunopen, .d_close = tunclose, .d_read = tunread, |