yaffs: Fix return value for yaffs direct sync
authorCharles Manning <cdhmanning@gmail.com>
Mon, 9 Aug 2010 22:06:45 +0000 (10:06 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Mon, 9 Aug 2010 22:06:45 +0000 (10:06 +1200)
Yaffs Direct sync was returning -1 regardless of sync result.
Now returns 0 if sync was done.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/yaffsfs.c

index 191c34f..b93f295 100644 (file)
@@ -1711,7 +1711,7 @@ int yaffs_sync(const YCHAR *path)
                         
                         yaffs_FlushEntireDeviceCache(dev);
                         yaffs_CheckpointSave(dev);
-                        
+                        retVal = 0;
                         
                 } else
                         /* todo error - not mounted. */