diff options
author | Connor Hansen <cmdkhh@gmail.com> | 2011-06-11 14:59:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-17 14:22:17 -0400 |
commit | eb40e3e8bb453519ae17d42e7cab6bdd2b4b9fc5 (patch) | |
tree | 6db0c4017e3a1e51c95ef762a63c40928fa70e3a /drivers/ssb | |
parent | a6af1d848179c17deb94621c2e761769f0d99355 (diff) |
drivers/ssb/driver_chipcommon_pmu.c: uninitilized warning
warning message
drivers/ssb/driver_chipcommon_pmu.c: In function ssb_pmu_resources_init
drivers/ssb/driver_chipcommon_pmu.c:420:15: warning: updown_tab_size may
be used uninitilized in this function.
updown_tab_size and depend_tab_size may not be set in the bus->chip_id
switch statement, so set to 0 by default to avoid using uninitialized
stack space.
Signed-off-by: Connor Hansen <cmdkhh@gmail.com>
Signed-off-by: Michael Buesch <m@bues.ch>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb')
-rw-r--r-- | drivers/ssb/driver_chipcommon_pmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ssb/driver_chipcommon_pmu.c b/drivers/ssb/driver_chipcommon_pmu.c index 305ade7825f..a7aef47bf73 100644 --- a/drivers/ssb/driver_chipcommon_pmu.c +++ b/drivers/ssb/driver_chipcommon_pmu.c | |||
@@ -417,9 +417,9 @@ static void ssb_pmu_resources_init(struct ssb_chipcommon *cc) | |||
417 | u32 min_msk = 0, max_msk = 0; | 417 | u32 min_msk = 0, max_msk = 0; |
418 | unsigned int i; | 418 | unsigned int i; |
419 | const struct pmu_res_updown_tab_entry *updown_tab = NULL; | 419 | const struct pmu_res_updown_tab_entry *updown_tab = NULL; |
420 | unsigned int updown_tab_size; | 420 | unsigned int updown_tab_size = 0; |
421 | const struct pmu_res_depend_tab_entry *depend_tab = NULL; | 421 | const struct pmu_res_depend_tab_entry *depend_tab = NULL; |
422 | unsigned int depend_tab_size; | 422 | unsigned int depend_tab_size = 0; |
423 | 423 | ||
424 | switch (bus->chip_id) { | 424 | switch (bus->chip_id) { |
425 | case 0x4312: | 425 | case 0x4312: |