From: Arend van Spriel Date: Mon, 8 Aug 2011 13:59:04 +0000 (+0200) Subject: staging: brcm80211: fix 'uninitialized usage' compiler warning X-Git-Tag: v3.2-rc1~169^2^2~864^2~304 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=124bf340114b74eb0a9f49dd51e855fa2300b565;p=profile%2Fivi%2Fkernel-x86-ivi.git staging: brcm80211: fix 'uninitialized usage' compiler warning Building for the ARM resulted in a compiler warning about usage of a possibly uninitialized variable. The warning is valid and the code has been fixed accordingly. Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Henry Ptasinski Signed-off-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/brcm80211/brcmsmac/channel.c b/drivers/staging/brcm80211/brcmsmac/channel.c index b9cb892..1aad680 100644 --- a/drivers/staging/brcm80211/brcmsmac/channel.c +++ b/drivers/staging/brcm80211/brcmsmac/channel.c @@ -1279,8 +1279,8 @@ brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec, const struct country_info *country; struct brcms_band *band; const struct locale_info *li; - int conducted_max; - int conducted_ofdm_max; + int conducted_max = BRCMS_TXPWR_MAX; + int conducted_ofdm_max = BRCMS_TXPWR_MAX; const struct locale_mimo_info *li_mimo; int maxpwr20, maxpwr40; int maxpwr_idx;