diff options
author | kib <kib@FreeBSD.org> | 2016-06-04 10:19:07 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-06-04 10:19:07 +0000 |
commit | 04420e89e8d6cbffc1e8c68928dc4df844c1b369 (patch) | |
tree | 759fa3b62dcb785113a28e5b453967cbea033bfa | |
parent | 78ba863c39b7ca4524efdbfe5a87c763f93f9054 (diff) | |
download | FreeBSD-src-04420e89e8d6cbffc1e8c68928dc4df844c1b369.zip FreeBSD-src-04420e89e8d6cbffc1e8c68928dc4df844c1b369.tar.gz |
MFC r300365:
Remove zero assignments in the cdev allocator. cdp memory is
requested with M_ZERO.
-rw-r--r-- | sys/fs/devfs/devfs_devs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/fs/devfs/devfs_devs.c b/sys/fs/devfs/devfs_devs.c index 4723a63..288e7bc 100644 --- a/sys/fs/devfs/devfs_devs.c +++ b/sys/fs/devfs/devfs_devs.c @@ -127,16 +127,11 @@ devfs_alloc(int flags) return (NULL); cdp->cdp_dirents = &cdp->cdp_dirent0; - cdp->cdp_dirent0 = NULL; - cdp->cdp_maxdirent = 0; - cdp->cdp_inode = 0; cdev = &cdp->cdp_c; - LIST_INIT(&cdev->si_children); vfs_timestamp(&ts); cdev->si_atime = cdev->si_mtime = cdev->si_ctime = ts; - cdev->si_cred = NULL; return (cdev); } |