From: Danny Kukawka Date: Tue, 14 Feb 2012 14:35:03 +0000 (+0100) Subject: spi-topcliff-pch: fix -Wuninitialized warning X-Git-Tag: v3.4-rc1~170^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de3bd7e6de25141c466773c2e0fa319b2fa93655;p=pandora-kernel.git 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 Signed-off-by: Grant Likely --- Reading git-diff-tree failed