Date: Wed, 16 Mar 2016 14:00:45 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r296937 - head/sys/fs/autofs Message-ID: <201603161400.u2GE0jUY086545@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Wed Mar 16 14:00:45 2016 New Revision: 296937 URL: https://svnweb.freebsd.org/changeset/base/296937 Log: Pacify Coverity in a better way, to avoid write-only variable when building without INVARIANTS. MFC after: 1 month Sponsored by: The FreeBSD Foundation Modified: head/sys/fs/autofs/autofs_vnops.c Modified: head/sys/fs/autofs/autofs_vnops.c ============================================================================== --- head/sys/fs/autofs/autofs_vnops.c Wed Mar 16 13:01:48 2016 (r296936) +++ head/sys/fs/autofs/autofs_vnops.c Wed Mar 16 14:00:45 2016 (r296937) @@ -370,10 +370,8 @@ static size_t autofs_dirent_reclen(const char *name) { size_t reclen; - int error; - error = autofs_readdir_one(NULL, name, -1, &reclen); - KASSERT(error == 0, ("autofs_readdir_one() failed")); + (void)autofs_readdir_one(NULL, name, -1, &reclen); return (reclen); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603161400.u2GE0jUY086545>