aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2022-07-11 22:51:27 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2022-07-11 22:58:07 +0000
commit2adb30740b12d4b80b8a1eb04b58ce0f6eb51de1 (patch)
tree2dc04b5395b69be007d7df70bcb70747306379eb
parent6452fb1e87ed9d00b52fa1e63e7c3a7516c9586c (diff)
downloadsrc-2adb30740b12d4b80b8a1eb04b58ce0f6eb51de1.tar.gz
src-2adb30740b12d4b80b8a1eb04b58ce0f6eb51de1.zip
nfscl: Replace "cred" with NULL to cleanup code
Commit 326bcf9394c7 added a new "cred" argument to nfscl_reqstart(). Fsinfo is a NFSv3 RPC and since the "cred" argument is not used for NFSv3, it does not matter what is passed in. However, to be consistent with the rest of the patch, change the argument to NULL. This patch should not result in a semantics change. PR: 260011 MFC after: 2 weeks
-rw-r--r--sys/fs/nfsclient/nfs_clrpcops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c
index 187136746e3a..051942d84d4d 100644
--- a/sys/fs/nfsclient/nfs_clrpcops.c
+++ b/sys/fs/nfsclient/nfs_clrpcops.c
@@ -4779,7 +4779,7 @@ nfsrpc_fsinfo(vnode_t vp, struct nfsfsinfo *fsp, struct ucred *cred,
int error;
*attrflagp = 0;
- NFSCL_REQSTART(nd, NFSPROC_FSINFO, vp, cred);
+ NFSCL_REQSTART(nd, NFSPROC_FSINFO, vp, NULL);
error = nfscl_request(nd, vp, p, cred);
if (error)
return (error);