drivers/ssb/driver_chipcommon_pmu.c: uninitilized warning
authorConnor Hansen <cmdkhh@gmail.com>
Sat, 11 Jun 2011 18:59:30 +0000 (20:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 17 Jun 2011 18:22:17 +0000 (14:22 -0400)
commiteb40e3e8bb453519ae17d42e7cab6bdd2b4b9fc5
tree6db0c4017e3a1e51c95ef762a63c40928fa70e3a
parenta6af1d848179c17deb94621c2e761769f0d99355
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>
drivers/ssb/driver_chipcommon_pmu.c