From: bdrewery Date: Thu, 29 Oct 2015 23:56:34 +0000 (+0000) Subject: Remove unneeded NULL as this is initialized with M_ZERO. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3d9be43e024bd23c162cabec70f4565a6198fb85;p=people%2Fjulieng%2Ffreebsd.git Remove unneeded NULL as this is initialized with M_ZERO. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division --- diff --git a/sys/dev/filemon/filemon.c b/sys/dev/filemon/filemon.c index f8a698f65e3b..ef6c98c7f18d 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"); }