Module Name:    src
Committed By:   christos
Date:           Wed Oct 16 18:23:39 UTC 2013

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

Log Message:
remove unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/usb/if_athn_usb.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_athn_usb.c
diff -u src/sys/dev/usb/if_athn_usb.c:1.5 src/sys/dev/usb/if_athn_usb.c:1.6
--- src/sys/dev/usb/if_athn_usb.c:1.5	Wed Apr  3 10:20:18 2013
+++ src/sys/dev/usb/if_athn_usb.c	Wed Oct 16 14:23:39 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_athn_usb.c,v 1.5 2013/04/03 14:20:18 christos Exp $	*/
+/*	$NetBSD: if_athn_usb.c,v 1.6 2013/10/16 18:23:39 christos Exp $	*/
 /*	$OpenBSD: if_athn_usb.c,v 1.12 2013/01/14 09:50:31 jsing Exp $	*/
 
 /*-
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.5 2013/04/03 14:20:18 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.6 2013/10/16 18:23:39 christos Exp $");
 
 #ifdef	_KERNEL_OPT
 #include "opt_inet.h"
@@ -2731,7 +2731,7 @@ athn_usb_stop(struct ifnet *ifp)
 	struct ar_htc_target_vif hvif;
 	struct mbuf *m;
 	uint8_t sta_index;
-	int s, error;
+	int s;
 
 	DPRINTFN(DBG_FN, sc, "\n");
 
@@ -2771,7 +2771,7 @@ athn_usb_stop(struct ifnet *ifp)
 	/* Remove default node. */
 	sta_index = 0;
 	DPRINTFN(DBG_NODES, usc, "removing node %u\n", sta_index);
-	error = athn_usb_remove_hw_node(usc, &sta_index);
+	(void)athn_usb_remove_hw_node(usc, &sta_index);
 
 	(void)athn_usb_wmi_cmd(usc, AR_WMI_CMD_DISABLE_INTR);
 	(void)athn_usb_wmi_cmd(usc, AR_WMI_CMD_DRAIN_TXQ_ALL);

Reply via email to