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);
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"