summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2009-02-08 20:07:45 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2009-02-08 20:07:45 +0000
commit016b40d687824984d796977d4bfd335dccb973df (patch)
tree00f089a506e3af9ffded92e7fa2535b534dcf6e6 /sys/dev
parenta58a43c840b35e9a888e00acbe988a9cc036e704 (diff)
fix uninitialized argument, and remove newly created unused variable.
Found by LLVM/Clang Static Analyzer. ok krw@ canacar@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_san_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_san_common.c b/sys/dev/pci/if_san_common.c
index eebfdbfb176..77f3ca913da 100644
--- a/sys/dev/pci/if_san_common.c
+++ b/sys/dev/pci/if_san_common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_san_common.c,v 1.12 2007/10/01 15:34:48 krw Exp $ */
+/* $OpenBSD: if_san_common.c,v 1.13 2009/02/08 20:07:44 chl Exp $ */
/*-
* Copyright (c) 2001-2004 Sangoma Technologies (SAN)
@@ -260,7 +260,6 @@ release_hw(sdla_t *card)
static int
wan_ioctl(struct ifnet *ifp, int cmd, struct ifreq *ifr)
{
- sdla_t *card;
wanpipe_common_t *common = WAN_IFP_TO_COMMON(ifp);
int err;
@@ -276,7 +275,7 @@ wan_ioctl(struct ifnet *ifp, int cmd, struct ifreq *ifr)
break;
case SIOC_WANPIPE_DUMP:
- err = wan_ioctl_dump(card, ifr->ifr_data);
+ err = wan_ioctl_dump(common->card, ifr->ifr_data);
break;
default: