Merge branches 'master' and 'suser_to_priv'
[dragonfly.git] / sys / dev / netif / wi / if_wi.c
index 479ea01..733a70a 100644 (file)
@@ -1947,7 +1947,7 @@ wi_get_cfg(struct ifnet *ifp, u_long cmd, caddr_t data, struct ucred *cr)
                        n = (len - off) / reslen;
                len = off + reslen * n;
                if (off != 0) {
-                       struct wi_scan_p2_hdr *p2 = (struct wi_scan_p2_hdr *)wreq.wi_val;
+                       struct wi_scan_p2_hdr *p2;
                        /*
                         * Prepend Prism-specific header.
                         */