Fix issues detected by cppcheck
This commit is contained in:
parent
9604ea8f42
commit
c62bb9beb1
@ -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)
|
* (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;
|
return result < 0 ? result : nbytes;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1406,7 +1406,7 @@ static int cc3000_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
|||||||
{
|
{
|
||||||
FAR struct inode *inode;
|
FAR struct inode *inode;
|
||||||
FAR struct cc3000_dev_s *priv;
|
FAR struct cc3000_dev_s *priv;
|
||||||
int ret;
|
int ret = OK;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
nllvdbg("setup: %d\n", (int)setup);
|
nllvdbg("setup: %d\n", (int)setup);
|
||||||
|
Loading…
Reference in New Issue
Block a user