diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -2901,7 +2901,6 @@
 		struct ifgroupreq ifgr;
 		struct ifmediareq ifmr;
 	} thunk;
-	caddr_t saved_data;
 	u_long saved_cmd;
 	struct ifconf32 *ifc32;
 	struct ifdrv32 *ifd32;
@@ -2928,7 +2927,6 @@
 
 #ifdef COMPAT_FREEBSD32
 	saved_cmd = cmd;
-	saved_data = data;
 	switch (cmd) {
 	case SIOCGIFCONF32:
 		ifc32 = (struct ifconf32 *)data;