aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-05-11 21:56:23 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-11-10 18:26:22 +0000
commit5fbf51588d2011dfc650a13f7b18311e4f3d5296 (patch)
tree80b58a568971b1e5f8e3e5a8a49723cd34c896e4
parent7affe1db37359647cf77ad330f391b506a0dba09 (diff)
Remove a write-only variable.
While refactoring an earlier series of changes during review, the 'saved_data' variable stopped being used at the bottom of if_ioctl(). Suggested by: brooks Reviewed by: brooks, imp, kib Fixes: d17e0940f79f Rework compat shims in ifioctl(). Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D30197 (cherry picked from commit ed93deba1106da2cd4755a61612c37bb67edc914)
-rw-r--r--sys/net/if.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 1f768ed1d4aa..aebda6d9e3ea 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -2922,7 +2922,6 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct thread *td)
struct ifgroupreq ifgr;
struct ifmediareq ifmr;
} thunk;
- caddr_t saved_data;
u_long saved_cmd;
struct ifconf32 *ifc32;
struct ifdrv32 *ifd32;
@@ -2949,7 +2948,6 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct thread *td)
#ifdef COMPAT_FREEBSD32
saved_cmd = cmd;
- saved_data = data;
switch (cmd) {
case SIOCGIFCONF32:
ifc32 = (struct ifconf32 *)data;