struct ifmediareq *ifmrp is only used in the COMPAT_FREEBSD32 parts of

ifioctl().  Move it inside the proper #ifdef.  This was throwing a valid
"Assigned but unused" warning with gcc.

Sponsored by:	Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D16063
This commit is contained in:
Sean Bruno 2018-07-07 13:35:06 +00:00
parent 5f1347d7c9
commit 2da1967762
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336062

View File

@ -2969,8 +2969,8 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct thread *td)
#ifdef COMPAT_FREEBSD32
caddr_t saved_data = NULL;
struct ifmediareq ifmr;
#endif
struct ifmediareq *ifmrp;
#endif
struct ifnet *ifp;
struct ifreq *ifr;
int error;
@ -3016,8 +3016,8 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct thread *td)
#endif
}
ifmrp = NULL;
#ifdef COMPAT_FREEBSD32
ifmrp = NULL;
switch (cmd) {
case SIOCGIFMEDIA32:
case SIOCGIFXMEDIA32: