diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-10-15 23:22:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-10-15 23:22:53 +0000 |
commit | f62bf7f27f42978050e772f55b0efdd4b8843911 (patch) | |
tree | 3ec4ead2ef92f04fd11f4c3a5fc04873316ab344 /nuttx/arch/arm | |
parent | 9328ea4048154b6e2392e0102cbbb33712fa0fe6 (diff) | |
download | px4-nuttx-f62bf7f27f42978050e772f55b0efdd4b8843911.tar.gz px4-nuttx-f62bf7f27f42978050e772f55b0efdd4b8843911.tar.bz2 px4-nuttx-f62bf7f27f42978050e772f55b0efdd4b8843911.zip |
Fix warning
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2140 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm')
-rwxr-xr-x | nuttx/arch/arm/src/stm32/stm32_spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_spi.c b/nuttx/arch/arm/src/stm32/stm32_spi.c index 6cd75a1f2..581c02f69 100755 --- a/nuttx/arch/arm/src/stm32/stm32_spi.c +++ b/nuttx/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; |