diff --git a/drivers/bch/bchdev_driver.c b/drivers/bch/bchdev_driver.c index 8e36bcb82e..cf5ab40252 100644 --- a/drivers/bch/bchdev_driver.c +++ b/drivers/bch/bchdev_driver.c @@ -106,7 +106,6 @@ static int bch_open(FAR struct file *filp) { FAR struct inode *inode = filp->f_inode; FAR struct bchlib_s *bch; - int ret; DEBUGASSERT(inode && inode->i_private); bch = (FAR struct bchlib_s *)inode->i_private; @@ -124,7 +123,7 @@ static int bch_open(FAR struct file *filp) } bchlib_semgive(bch); - return ret; + return OK; } /**************************************************************************** diff --git a/drivers/mmcsd/mmcsd_spi.c b/drivers/mmcsd/mmcsd_spi.c index 06b660a2f6..dafcc4fc21 100644 --- a/drivers/mmcsd/mmcsd_spi.c +++ b/drivers/mmcsd/mmcsd_spi.c @@ -375,7 +375,7 @@ static inline void mmcsd_synchronize(FAR struct mmcsd_slot_s *slot) SPI_SELECT(spi, SPIDEV_MMCSD, TRUE); } #else -# define mmcsd_synchronize(slot) /* No synchronization needed */s +# define mmcsd_synchronize(slot) /* No synchronization needed */ #endif /**************************************************************************** diff --git a/examples/nsh/nsh_lm3s.c b/examples/nsh/nsh_lm3s.c index 75576bbbe6..791bf9d71a 100644 --- a/examples/nsh/nsh_lm3s.c +++ b/examples/nsh/nsh_lm3s.c @@ -38,8 +38,9 @@ ****************************************************************************/ #include - #include + +#include #include #include diff --git a/examples/nsh/nsh_lpc214x.c b/examples/nsh/nsh_lpc214x.c index 487d3e03f6..937db8a61e 100644 --- a/examples/nsh/nsh_lpc214x.c +++ b/examples/nsh/nsh_lpc214x.c @@ -38,8 +38,9 @@ ****************************************************************************/ #include - #include + +#include #include #include diff --git a/examples/nsh/nsh_serial.c b/examples/nsh/nsh_serial.c index 90107bb67e..fe5fac93bc 100644 --- a/examples/nsh/nsh_serial.c +++ b/examples/nsh/nsh_serial.c @@ -363,4 +363,5 @@ int nsh_consolemain(int argc, char *argv[]) fflush(pstate->ss_stream); } } + return OK; }