summaryrefslogtreecommitdiff
path: root/nuttx/fs/smartfs
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-05-09 14:23:34 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-05-09 14:23:34 -0600
commit17cfb7007f3f4e253d3533ee87349ce1b8e4885e (patch)
treefb175af19fa6835f8929ee075ff16acfeb49f904 /nuttx/fs/smartfs
parent4495dfb36135744a6f903e32ac2215b1f3ab0452 (diff)
downloadpx4-nuttx-17cfb7007f3f4e253d3533ee87349ce1b8e4885e.tar.gz
px4-nuttx-17cfb7007f3f4e253d3533ee87349ce1b8e4885e.tar.bz2
px4-nuttx-17cfb7007f3f4e253d3533ee87349ce1b8e4885e.zip
Various changes and bigfixes for problems detected by CppCheck
Diffstat (limited to 'nuttx/fs/smartfs')
-rw-r--r--nuttx/fs/smartfs/smartfs_smart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/smartfs/smartfs_smart.c b/nuttx/fs/smartfs/smartfs_smart.c
index a1613b899..accf1b04e 100644
--- a/nuttx/fs/smartfs/smartfs_smart.c
+++ b/nuttx/fs/smartfs/smartfs_smart.c
@@ -571,7 +571,7 @@ static int smartfs_sync_internal(struct smartfs_mountpt_s *fs,
{
struct smart_read_write_s readwrite;
struct smartfs_chain_header_s *header;
- int ret;
+ int ret = OK;
/* Test if we have written bytes to the current sector that
* need to be recorded in the chain header's used bytes field. */