summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-02-12 01:01:40 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-02-12 01:01:40 +0000
commitb90e23decf3f3b7709850dc2202c269d772825d4 (patch)
treeb1ae3b95e5d5cd269952e8fbeb560656f99c709f /sys/dev/ic
parentb6f1003436a04d49ad5859a195f640c8325c3d84 (diff)
Fix an uninitialised return value in rtwn_ra_init(). Though nothing
currently tests the return value. ok stsp@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/rtwn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/rtwn.c b/sys/dev/ic/rtwn.c
index 4ae3beb53fb..18426e45547 100644
--- a/sys/dev/ic/rtwn.c
+++ b/sys/dev/ic/rtwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtwn.c,v 1.18 2017/02/01 12:46:40 stsp Exp $ */
+/* $OpenBSD: rtwn.c,v 1.19 2017/02/12 01:01:39 jsg Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -654,7 +654,8 @@ rtwn_ra_init(struct rtwn_softc *sc)
struct ieee80211_rateset *rs = &ni->ni_rates;
uint32_t rates, basicrates;
uint8_t mode;
- int maxrate, maxbasicrate, error, i, j;
+ int maxrate, maxbasicrate, i, j;
+ int error = 0;
/* Get normal and basic rates mask. */
rates = basicrates = 0;