git: bdb15399d5a0 - stable/13 - krpc_call: eliminiate write only variable nam
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:30:14 UTC
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=bdb15399d5a097cc6846f59e831c216515b2af38 commit bdb15399d5a097cc6846f59e831c216515b2af38 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-08 17:53:35 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-10-02 04:25:57 +0000 krpc_call: eliminiate write only variable nam Sponsored by: Netflix (cherry picked from commit 5c2aad7e890d9f90b0281bb68bf07e764e0d62bd) --- sys/nfs/krpc_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/nfs/krpc_subr.c b/sys/nfs/krpc_subr.c index 21e8e3ad44d0..b4a0abd7a6f1 100644 --- a/sys/nfs/krpc_subr.c +++ b/sys/nfs/krpc_subr.c @@ -196,7 +196,7 @@ krpc_call(struct sockaddr_in *sa, u_int prog, u_int vers, u_int func, struct socket *so; struct sockaddr_in *sin, ssin; struct sockaddr *from; - struct mbuf *m, *nam, *mhead; + struct mbuf *m, *mhead; struct krpc_call *call; struct krpc_reply *reply; struct sockopt sopt; @@ -215,7 +215,7 @@ krpc_call(struct sockaddr_in *sa, u_int prog, u_int vers, u_int func, return (EAFNOSUPPORT); /* Free at end if not null. */ - nam = mhead = NULL; + mhead = NULL; from = NULL; /*