From c62bb9beb1457643a5bddf56a96991f02e61ac60 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Tue, 22 Mar 2016 15:46:47 -0400 Subject: [PATCH] Fix issues detected by cppcheck --- drivers/mtd/mtd_progmem.c | 2 +- drivers/wireless/cc3000/cc3000.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/mtd_progmem.c b/drivers/mtd/mtd_progmem.c index e3eca2ee5f..3d76402fd8 100644 --- a/drivers/mtd/mtd_progmem.c +++ b/drivers/mtd/mtd_progmem.c @@ -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 diff --git a/drivers/wireless/cc3000/cc3000.c b/drivers/wireless/cc3000/cc3000.c index f309e968fb..bc0e2a615c 100644 --- a/drivers/wireless/cc3000/cc3000.c +++ b/drivers/wireless/cc3000/cc3000.c @@ -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);