Eliminate uninitialized variable warning
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1090 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
7117e29e2a
commit
2098fcf3e8
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue