Pacify Coverity in a better way, to avoid write-only variable when building

without INVARIANTS.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
trasz 2016-03-16 14:00:45 +00:00
parent 6069618934
commit d66d04f246

View File

@ -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);
}