diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-28 01:18:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-28 01:18:14 +0000 |
commit | 31126f8134ee755a5f8934a2a4dc2125e8edc73f (patch) | |
tree | d81f2bb24273c608a68535461bb7113bd43babf8 | |
parent | 38ec7b40c175c732920214ea8a3d3dcba653405b (diff) | |
download | px4-nuttx-31126f8134ee755a5f8934a2a4dc2125e8edc73f.tar.gz px4-nuttx-31126f8134ee755a5f8934a2a4dc2125e8edc73f.tar.bz2 px4-nuttx-31126f8134ee755a5f8934a2a4dc2125e8edc73f.zip |
Eliminate uninitialized variable warning
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1090 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/drivers/mmcsd/mmcsd_spi.c | 2 | ||||
-rw-r--r-- | nuttx/drivers/usbdev/usbdev_storage.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/mmcsd/mmcsd_spi.c b/nuttx/drivers/mmcsd/mmcsd_spi.c index 2ca69bb05..a3ce6ea5d 100644 --- a/nuttx/drivers/mmcsd/mmcsd_spi.c +++ b/nuttx/drivers/mmcsd/mmcsd_spi.c @@ -417,7 +417,7 @@ static uint32 mmcsd_sendcmd(FAR struct mmcsd_slot_s *slot, { case MMCSD_CMDRESP_R1B: { - uint32 busy; + uint32 busy = 0; for (i = 0; i < slot->twrite && busy != 0xff; i++) { busy = SPI_SNDBYTE(spi, 0xff); diff --git a/nuttx/drivers/usbdev/usbdev_storage.c b/nuttx/drivers/usbdev/usbdev_storage.c index c06046019..4c56492ba 100644 --- a/nuttx/drivers/usbdev/usbdev_storage.c +++ b/nuttx/drivers/usbdev/usbdev_storage.c @@ -497,7 +497,7 @@ static int usbstrg_bind(FAR struct usbdev_s *dev, FAR struct usbdevclass_driver_ FAR struct usbstrg_dev_s *priv = ((struct usbstrg_driver_s*)driver)->dev; FAR struct usbstrg_req_s *reqcontainer; irqstate_t flags; - int ret; + int ret = OK; int i; usbtrace(TRACE_CLASSBIND, 0); |