summaryrefslogtreecommitdiffstats
path: root/sys/dev/filemon
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-10-29 23:56:34 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-10-29 23:56:34 +0000
commit3d9be43e024bd23c162cabec70f4565a6198fb85 (patch)
tree9f72f91f63298eeb39b5dbbb223395658bc8d965 /sys/dev/filemon
parentcfb3b1e0f68485dabdf62718a5ff255a19152eb1 (diff)
downloadFreeBSD-src-3d9be43e024bd23c162cabec70f4565a6198fb85.zip
FreeBSD-src-3d9be43e024bd23c162cabec70f4565a6198fb85.tar.gz
Remove unneeded NULL as this is initialized with M_ZERO.
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/dev/filemon')
-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 f8a698f..ef6c98c 100644
--- a/sys/dev/filemon/filemon.c
+++ b/sys/dev/filemon/filemon.c
@@ -195,9 +195,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