Fix issues detected by cppcheck

This commit is contained in:
Paul A. Patience 2016-03-22 15:46:47 -04:00
parent 9604ea8f42
commit c62bb9beb1
2 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ static ssize_t progmem_write(FAR struct mtd_dev_s *dev, off_t offset,
* (The positive, number of blocks actually written or a negated errno)
*/
result = up_progmem_write(up_progmem_getaddress(offset), buffer, nbytes;
result = up_progmem_write(up_progmem_getaddress(offset), buffer, nbytes);
return result < 0 ? result : nbytes;
}
#endif

View File

@ -1406,7 +1406,7 @@ static int cc3000_poll(FAR struct file *filep, FAR struct pollfd *fds,
{
FAR struct inode *inode;
FAR struct cc3000_dev_s *priv;
int ret;
int ret = OK;
int i;
nllvdbg("setup: %d\n", (int)setup);