staging: brcm80211: fix 'uninitialized usage' compiler warning
authorArend van Spriel <arend@broadcom.com>
Mon, 8 Aug 2011 13:59:04 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:00:11 +0000 (13:00 -0700)
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 <pieterpg@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/channel.c

index b9cb892377ed6119031a0520d9982b693bef4b33..1aad680c7f62e2872303f2437d051fc272a6ea26 100644 (file)
@@ -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;