From b3800e7dea9b390d9affac8a56dc3278c38af67d Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 15 Oct 2009 23:22:53 +0000 Subject: [PATCH] Fix warning git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2140 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/stm32/stm32_spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/stm32_spi.c b/arch/arm/src/stm32/stm32_spi.c index 6cd75a1f22..581c02f695 100755 --- a/arch/arm/src/stm32/stm32_spi.c +++ b/arch/arm/src/stm32/stm32_spi.c @@ -771,12 +771,13 @@ FAR struct spi_dev_s *up_spiinitialize(int port) { FAR struct stm32_spidev_s *priv = NULL; irqstate_t flags; - uint32 mapr; flags = irqsave(); #ifdef CONFIG_STM32_SPI1 if (port == 0) { + uint32 mapr; + /* Select SPI1 */ priv = &g_spi1dev;