Module Name:    src
Committed By:   martin
Date:           Wed Mar 18 09:42:05 UTC 2020

Modified Files:
        src/sys/dev/usb: if_aue.c

Log Message:
Make this compilable w/o AUE_DEBUG


To generate a diff of this commit:
cvs rdiff -u -r1.169 -r1.170 src/sys/dev/usb/if_aue.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/if_aue.c
diff -u src/sys/dev/usb/if_aue.c:1.169 src/sys/dev/usb/if_aue.c:1.170
--- src/sys/dev/usb/if_aue.c:1.169	Wed Mar 18 02:58:24 2020
+++ src/sys/dev/usb/if_aue.c	Wed Mar 18 09:42:05 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_aue.c,v 1.169 2020/03/18 02:58:24 christos Exp $	*/
+/*	$NetBSD: if_aue.c,v 1.170 2020/03/18 09:42:05 martin Exp $	*/
 
 /*
  * Copyright (c) 1997, 1998, 1999, 2000
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.169 2020/03/18 02:58:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.170 2020/03/18 09:42:05 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1012,7 +1012,9 @@ aue_uno_init(struct ifnet *ifp)
 static int
 aue_uno_ioctl(struct ifnet *ifp, u_long cmd, void *data)
 {
+#ifdef AUE_DEBUG
 	struct usbnet * const	un = ifp->if_softc;
+#endif
 
 	AUEHIST_FUNC();
 	AUEHIST_CALLARGSN(5, "aue%jd: enter cmd %#jx data %#jx",

Reply via email to