git: 2601d9e43bc5 - stable/13 - bootpc_decode_reply: eliminiate write only variable ip
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:30:13 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=2601d9e43bc5d0169c5bc0fddd9d3a8deb791fc9
commit 2601d9e43bc5d0169c5bc0fddd9d3a8deb791fc9
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
bootpc_decode_reply: eliminiate write only variable ip
Sponsored by: Netflix
(cherry picked from commit b64a484592b2c053f7131edd949edb0a76eef083)
---
sys/nfs/bootp_subr.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sys/nfs/bootp_subr.c b/sys/nfs/bootp_subr.c
index a05f33a55a71..cae6b7c30a71 100644
--- a/sys/nfs/bootp_subr.c
+++ b/sys/nfs/bootp_subr.c
@@ -1335,7 +1335,6 @@ bootpc_decode_reply(struct nfsv3_diskless *nd, struct bootpc_ifcontext *ifctx,
struct bootpc_globalcontext *gctx)
{
char *p, *s;
- unsigned int ip;
ifctx->gotgw = 0;
ifctx->gotnetmask = 0;
@@ -1346,8 +1345,6 @@ bootpc_decode_reply(struct nfsv3_diskless *nd, struct bootpc_ifcontext *ifctx,
ifctx->myaddr.sin_addr = ifctx->reply.yiaddr;
- ip = ntohl(ifctx->myaddr.sin_addr.s_addr);
-
printf("%s at ", ifctx->ireq.ifr_name);
print_sin_addr(&ifctx->myaddr);
printf(" server ");