Date: Fri, 4 Dec 2015 18:26:01 +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-9@freebsd.org Subject: svn commit: r291802 - stable/9/sys/dev/filemon Message-ID: <201512041826.tB4IQ1Y5022592@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Fri Dec 4 18:26:01 2015 New Revision: 291802 URL: https://svnweb.freebsd.org/changeset/base/291802 Log: MFC r290170: Remove unneeded NULL as this is initialized with M_ZERO. Modified: stable/9/sys/dev/filemon/filemon.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/filemon/filemon.c ============================================================================== --- stable/9/sys/dev/filemon/filemon.c Fri Dec 4 18:25:55 2015 (r291801) +++ stable/9/sys/dev/filemon/filemon.c Fri Dec 4 18:26:01 2015 (r291802) @@ -231,9 +231,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?201512041826.tB4IQ1Y5022592>