1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Remove zero assignments in the cdev allocator. cdp memory is

requested with M_ZERO.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
This commit is contained in:
Konstantin Belousov 2016-05-21 09:55:32 +00:00
parent c70b3cd28d
commit ae40237874
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300365

View File

@ -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);
}