aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2020-03-03 18:58:43 +0000
committerBrooks Davis <brooks@FreeBSD.org>2020-03-03 18:58:43 +0000
commit1b8b041ce9768a3c4ddaf0895957e11416ad0a7e (patch)
treeeb4ef6ef6ff17ec5cb2257a265f8eed87aed849f
parent8ad798ae9a8a5bcb8ac284215d04811327955746 (diff)
downloadsrc-1b8b041ce9768a3c4ddaf0895957e11416ad0a7e.tar.gz
src-1b8b041ce9768a3c4ddaf0895957e11416ad0a7e.zip
Use ifr_data_get_ptr() consistently.
Notes
Notes: svn path=/head/; revision=358593
-rw-r--r--sys/dev/mxge/if_mxge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c
index 3364b29fecad..19633d41af9c 100644
--- a/sys/dev/mxge/if_mxge.c
+++ b/sys/dev/mxge/if_mxge.c
@@ -4326,7 +4326,7 @@ mxge_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
err = mxge_fetch_i2c(sc, &i2c);
mtx_unlock(&sc->driver_mtx);
if (err == 0)
- err = copyout(&i2c, ifr->ifr_ifru.ifru_data,
+ err = copyout(&i2c, ifr_data_get_ptr(ifr),
sizeof(i2c));
break;
default: