svn commit: r291802 - stable/9/sys/dev/filemon

Bryan Drewery bdrewery at FreeBSD.org
Fri Dec 4 18:26:02 UTC 2015


Author: bdrewery
Date: Fri Dec  4 18:26:01 2015
New Revision: 291802
URL: https://svnweb.freebsd.org/changeset/base/291802

Log:
  MFC r290170:
  
    Remove unneeded NULL as this is initialized with M_ZERO.

Modified:
  stable/9/sys/dev/filemon/filemon.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/filemon/filemon.c
==============================================================================
--- stable/9/sys/dev/filemon/filemon.c	Fri Dec  4 18:25:55 2015	(r291801)
+++ stable/9/sys/dev/filemon/filemon.c	Fri Dec  4 18:26:01 2015	(r291802)
@@ -231,9 +231,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-stable-9 mailing list