From b90e23decf3f3b7709850dc2202c269d772825d4 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 12 Feb 2017 01:01:40 +0000 Subject: Fix an uninitialised return value in rtwn_ra_init(). Though nothing currently tests the return value. ok stsp@ --- sys/dev/ic/rtwn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic') 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 @@ -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; -- cgit v1.2.3