Date: Mon, 11 Jul 2022 22:58:41 GMT From: Rick Macklem <rmacklem@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2adb30740b12 - main - nfscl: Replace "cred" with NULL to cleanup code Message-ID: <202207112258.26BMwfNa048291@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=2adb30740b12d4b80b8a1eb04b58ce0f6eb51de1 commit 2adb30740b12d4b80b8a1eb04b58ce0f6eb51de1 Author: Rick Macklem <rmacklem@FreeBSD.org> AuthorDate: 2022-07-11 22:51:27 +0000 Commit: Rick Macklem <rmacklem@FreeBSD.org> CommitDate: 2022-07-11 22:58:07 +0000 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 --- sys/fs/nfsclient/nfs_clrpcops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207112258.26BMwfNa048291>