From 48de33cb61458f3f546fd0a68a39b23c1a040a14 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 12 Sep 2008 22:28:29 +0000 Subject: Use SEC_NSECTOR macro git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@921 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/fs/romfs/fs_romfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx/fs/romfs') diff --git a/nuttx/fs/romfs/fs_romfs.c b/nuttx/fs/romfs/fs_romfs.c index 5dbacd829..e031612f8 100644 --- a/nuttx/fs/romfs/fs_romfs.c +++ b/nuttx/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 -- cgit v1.2.3