nfscl: Make coverity happy
Coverity does not like code that checks a function's return value sometimes. Add "(void)" in front of the function when the return value does not matter to try and make it happy. Reported by: emaste MFC after: 3 months
This commit is contained in:
parent
6a0a634590
commit
1512579adc
@ -9245,7 +9245,7 @@ nfscl_statfs(struct vnode *vp, struct ucred *cred, NFSPROC_T *td)
|
||||
error = nfsrpc_statfs(vp, &sb, &fs, &lease, cred, td, &nfsva,
|
||||
&attrflag);
|
||||
if (attrflag != 0)
|
||||
nfscl_loadattrcache(&vp, &nfsva, NULL, 0, 1);
|
||||
(void) nfscl_loadattrcache(&vp, &nfsva, NULL, 0, 1);
|
||||
if (error == 0) {
|
||||
NFSLOCKCLSTATE();
|
||||
if (nmp->nm_clp != NULL)
|
||||
|
@ -4542,7 +4542,7 @@ nfs_pathconf(struct vop_pathconf_args *ap)
|
||||
NFSV4CONTENT_HOLE, td->td_ucred, &nfsva,
|
||||
&attrflag);
|
||||
if (attrflag != 0)
|
||||
nfscl_loadattrcache(&vp, &nfsva,
|
||||
(void) nfscl_loadattrcache(&vp, &nfsva,
|
||||
NULL, 0, 1);
|
||||
mtx_lock(&nmp->nm_mtx);
|
||||
if (error == NFSERR_NOTSUPP)
|
||||
|
Loading…
Reference in New Issue
Block a user