Merged in paulpatience/nuttx (pull request #51)

Fix issues detected by cppcheck
This commit is contained in:
Gregory Nutt 2016-03-22 13:47:48 -06:00
commit 2534791a2e
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);