Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2015 18:25:56 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r291801 - stable/10/sys/dev/filemon
Message-ID:  <201512041825.tB4IPuNc022540@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri Dec  4 18:25:55 2015
New Revision: 291801
URL: https://svnweb.freebsd.org/changeset/base/291801

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

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

Modified: stable/10/sys/dev/filemon/filemon.c
==============================================================================
--- stable/10/sys/dev/filemon/filemon.c	Fri Dec  4 18:24:51 2015	(r291800)
+++ stable/10/sys/dev/filemon/filemon.c	Fri Dec  4 18:25:55 2015	(r291801)
@@ -194,9 +194,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");
 	}
 



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