From f024c8018dc6a2dedb86893b5ca24791db20bc53 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 30 Aug 2012 11:03:58 +0000 Subject: make a variable that can take a value of -1 signed to match what the rest of the code expects. from brad --- sys/dev/ic/ar5211.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/ar5211.c b/sys/dev/ic/ar5211.c index e4293692863..853b5b2aad6 100644 --- a/sys/dev/ic/ar5211.c +++ b/sys/dev/ic/ar5211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5211.c,v 1.44 2009/06/02 12:39:02 reyk Exp $ */ +/* $OpenBSD: ar5211.c,v 1.45 2012/08/30 11:03:57 jsg Exp $ */ /* * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter @@ -2563,8 +2563,9 @@ ar5k_ar5211_rfregs(struct ath_hal *hal, HAL_CHANNEL *channel, u_int freq, { struct ar5k_eeprom_info *ee = &hal->ah_capabilities.cap_eeprom; struct ar5k_ar5211_ini_rf rf[nitems(ar5211_rf)]; - u_int32_t ob, db, obdb, xpds, xpdp, x_gain; + u_int32_t ob, db, xpds, xpdp, x_gain; u_int i; + int obdb; bcopy(ar5211_rf, rf, sizeof(rf)); obdb = 0; -- cgit v1.2.3