Date: Thu, 29 Oct 2015 23:56:34 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290170 - head/sys/dev/filemon Message-ID: <201510292356.t9TNuY0d089545@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Thu Oct 29 23:56:34 2015 New Revision: 290170 URL: https://svnweb.freebsd.org/changeset/base/290170 Log: Remove unneeded NULL as this is initialized with M_ZERO. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Modified: head/sys/dev/filemon/filemon.c Modified: head/sys/dev/filemon/filemon.c ============================================================================== --- head/sys/dev/filemon/filemon.c Thu Oct 29 23:06:33 2015 (r290169) +++ head/sys/dev/filemon/filemon.c Thu Oct 29 23:56:34 2015 (r290170) @@ -195,9 +195,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?201510292356.t9TNuY0d089545>