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:
parent
6069618934
commit
d66d04f246
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user