Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 May 2016 09:55:33 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300365 - head/sys/fs/devfs
Message-ID:  <201605210955.u4L9tXX3085619@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat May 21 09:55:32 2016
New Revision: 300365
URL: https://svnweb.freebsd.org/changeset/base/300365

Log:
  Remove zero assignments in the cdev allocator.  cdp memory is
  requested with M_ZERO.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	2 weeks

Modified:
  head/sys/fs/devfs/devfs_devs.c

Modified: head/sys/fs/devfs/devfs_devs.c
==============================================================================
--- head/sys/fs/devfs/devfs_devs.c	Sat May 21 09:49:35 2016	(r300364)
+++ head/sys/fs/devfs/devfs_devs.c	Sat May 21 09:55:32 2016	(r300365)
@@ -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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605210955.u4L9tXX3085619>