From f796d1dff6a2b5383cebf47b37075c2c8c8245cd Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 12 Sep 2008 22:28:29 +0000 Subject: [PATCH] Use SEC_NSECTOR macro git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@921 42af7a65-404d-4744-a932-0658087f49c3 --- fs/romfs/fs_romfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/romfs/fs_romfs.c b/fs/romfs/fs_romfs.c index 5dbacd82994..e031612f819 100644 --- a/fs/romfs/fs_romfs.c +++ b/fs/romfs/fs_romfs.c @@ -372,7 +372,7 @@ static ssize_t romfs_read(FAR struct file *filep, char *buffer, size_t buflen) * aligned to a sector boundary. */ - nsectors = buflen / rm->rm_hwsectorsize; + nsectors = SEC_NSECTORS(rm, buflen); if (nsectors > 0 && sectorndx == 0) { /* Read maximum contiguous sectors directly to the user's