svn commit: r290170 - head/sys/dev/filemon

Bryan Drewery bdrewery at FreeBSD.org
Thu Oct 29 23:56:35 UTC 2015


Author: bdrewery
Date: Thu Oct 29 23:56:34 2015
New Revision: 290170
URL: https://svnweb.freebsd.org/changeset/base/290170

Log:
  Remove unneeded NULL as this is initialized with M_ZERO.
  
  MFC after:	2 weeks
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/dev/filemon/filemon.c

Modified: head/sys/dev/filemon/filemon.c
==============================================================================
--- head/sys/dev/filemon/filemon.c	Thu Oct 29 23:06:33 2015	(r290169)
+++ head/sys/dev/filemon/filemon.c	Thu Oct 29 23:56:34 2015	(r290170)
@@ -195,9 +195,6 @@ filemon_open(struct cdev *dev, int oflag
 	if (filemon == NULL) {
 		filemon = malloc(sizeof(struct filemon), M_FILEMON,
 		    M_WAITOK | M_ZERO);
-
-		filemon->fp = NULL;
-
 		sx_init(&filemon->lock, "filemon");
 	}
 


More information about the svn-src-all mailing list