diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 13:15:09 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 13:15:09 -0600 |
commit | 3b3fcf2bfa6015d890d42b5a528f7fe7476632f7 (patch) | |
tree | cccc4fca1d7d91915ad679577b484c5c6a110e6d /nuttx/configs/stm32f4discovery | |
parent | c9b18b049b09580260188349bb32e91b59f74965 (diff) | |
download | px4-nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.tar.gz px4-nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.tar.bz2 px4-nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.zip |
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
Diffstat (limited to 'nuttx/configs/stm32f4discovery')
-rw-r--r-- | nuttx/configs/stm32f4discovery/src/stm32_usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/configs/stm32f4discovery/src/stm32_usb.c b/nuttx/configs/stm32f4discovery/src/stm32_usb.c index b1b24511c..7afb60d45 100644 --- a/nuttx/configs/stm32f4discovery/src/stm32_usb.c +++ b/nuttx/configs/stm32f4discovery/src/stm32_usb.c @@ -170,7 +170,10 @@ void stm32_usbinitialize(void) int stm32_usbhost_initialize(void) { int pid; +#if defined(CONFIG_USBHOST_MSC) || defined(CONFIG_USBHOST_HIDKBD) || \ + defined(CONFIG_USBHOST_HIDMOUSE) int ret; +#endif /* First, register all of the class drivers needed to support the drivers * that we care about: |