summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-12-04 18:25:55 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-12-04 18:25:55 +0000
commitba57be3547f6c263592763d8482bf61f869fc3c9 (patch)
treec8b02c50d77527daf9e9109eb4a3e6aff7617eee /sys/dev
parent42fd244b0bf9d76d412cb38b91bcdaed3867d1fd (diff)
downloadFreeBSD-src-ba57be3547f6c263592763d8482bf61f869fc3c9.zip
FreeBSD-src-ba57be3547f6c263592763d8482bf61f869fc3c9.tar.gz
MFC r290170:
Remove unneeded NULL as this is initialized with M_ZERO.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/filemon/filemon.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/filemon/filemon.c b/sys/dev/filemon/filemon.c
index f171ce3..b302de9 100644
--- a/sys/dev/filemon/filemon.c
+++ b/sys/dev/filemon/filemon.c
@@ -194,9 +194,6 @@ filemon_open(struct cdev *dev, int oflags __unused, int devtype __unused,
if (filemon == NULL) {
filemon = malloc(sizeof(struct filemon), M_FILEMON,
M_WAITOK | M_ZERO);
-
- filemon->fp = NULL;
-
sx_init(&filemon->lock, "filemon");
}
OpenPOWER on IntegriCloud