diff options
author | 2017-02-12 01:01:39 +0000 | |
---|---|---|
committer | 2017-02-12 01:01:39 +0000 | |
commit | 007f9c5df8d082196c6fc6d477c9325a58b68ea2 (patch) | |
tree | 86bfd6c396264a8f599960db17315f7e6b6fc1bc | |
parent | tweak previous; (diff) | |
download | wireguard-openbsd-007f9c5df8d082196c6fc6d477c9325a58b68ea2.tar.xz wireguard-openbsd-007f9c5df8d082196c6fc6d477c9325a58b68ea2.zip |
Fix an uninitialised return value in rtwn_ra_init(). Though nothing
currently tests the return value.
ok stsp@
-rw-r--r-- | sys/dev/ic/rtwn.c | 5 |
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; |