diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-02-14 14:35:03 (GMT) |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-03-09 21:43:12 (GMT) |
commit | de3bd7e6de25141c466773c2e0fa319b2fa93655 (patch) | |
tree | 684104e835c605ae49cc2b9acbf2649906e7bd00 /drivers/spi/Kconfig | |
parent | 690fb11be34cc908ef895d16c6c1673df1b4667a (diff) | |
download | linux-fsl-qoriq-de3bd7e6de25141c466773c2e0fa319b2fa93655.tar.xz |
spi-topcliff-pch: fix -Wuninitialized warning
Fix for:
drivers/spi/spi-topcliff-pch.c: In function ‘pch_spi_handler_sub’:
drivers/spi/spi-topcliff-pch.c:325:17: warning: ‘bpw_len’ may be
used uninitialized in this function [-Wuninitialized]
drivers/spi/spi-topcliff-pch.c:325:42: warning: ‘rx_index’ may be
used uninitialized in this function [-Wuninitialized]
drivers/spi/spi-topcliff-pch.c:325:42: warning: ‘tx_index’ may be
used uninitialized in this function [-Wuninitialized]
Move usage of tx_index, rx_index and bpw_len into the same
block as where they are set to prevent uninitialized usage.
v2: instead of init variables with 0 move the whole block
Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/Kconfig')
0 files changed, 0 insertions, 0 deletions