Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb remove unused variable
details: https://anonhg.NetBSD.org/src/rev/2b152de05d84
branches: trunk
changeset: 790532:2b152de05d84
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 16 18:23:39 2013 +0000
description:
remove unused variable
diffstat:
sys/dev/usb/if_athn_usb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 460c91aedcd8 -r 2b152de05d84 sys/dev/usb/if_athn_usb.c
--- a/sys/dev/usb/if_athn_usb.c Wed Oct 16 18:20:16 2013 +0000
+++ b/sys/dev/usb/if_athn_usb.c Wed Oct 16 18:23:39 2013 +0000
@@ -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 @@
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 @@
/* 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);
Home |
Main Index |
Thread Index |
Old Index