diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-09 14:23:34 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-09 14:23:34 -0600 |
commit | 17cfb7007f3f4e253d3533ee87349ce1b8e4885e (patch) | |
tree | fb175af19fa6835f8929ee075ff16acfeb49f904 /nuttx/fs/smartfs | |
parent | 4495dfb36135744a6f903e32ac2215b1f3ab0452 (diff) | |
download | px4-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.c | 2 |
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. */ |