summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-11-14 16:08:00 +0000
committer[email protected] <[email protected]>2012-11-14 16:08:00 +0000
commitd5eb16dda2340da4be8315d101286800f760bb56 (patch)
treed44f6aedc78b514d4c1282b2412f538e4d4b20e3 /components
parent583bb26fb211555212a3fde10f49ea1264ada86d (diff)
fix the line break in dfs_elm.c(there are some windows line break characters)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2413 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/dfs/filesystems/elmfat/dfs_elm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c
index a385295ec3..cad548b6b5 100644
--- a/components/dfs/filesystems/elmfat/dfs_elm.c
+++ b/components/dfs/filesystems/elmfat/dfs_elm.c
@@ -780,11 +780,9 @@ DRESULT disk_ioctl(BYTE drv, BYTE ctrl, void *buff)
rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry);
*(DWORD *)buff = geometry.block_size/geometry.bytes_per_sector;
- }
- else if (ctrl == CTRL_SYNC)
- {
- rt_device_control(device, RT_DEVICE_CTRL_BLK_SYNC, RT_NULL);
}
+ else if (ctrl == CTRL_SYNC)
+ rt_device_control(device, RT_DEVICE_CTRL_BLK_SYNC, RT_NULL);
return RES_OK;
}