summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>2012-07-20 15:19:51 +0200
committerWolfgang Denk <wd@denx.de>2012-09-02 17:15:16 +0200
commit88503ad3bb5a21a95fe388a1d45e303c206a4e9d (patch)
tree71eba4b6873e1404395c9fb91b8a2a22edbdca2f /fs
parent8006dd2e57a9b30ff1c978e76c0dcd28d9786ce8 (diff)
downloadu-boot-imx-88503ad3bb5a21a95fe388a1d45e303c206a4e9d.zip
u-boot-imx-88503ad3bb5a21a95fe388a1d45e303c206a4e9d.tar.gz
u-boot-imx-88503ad3bb5a21a95fe388a1d45e303c206a4e9d.tar.bz2
FAT: cosmetic: Remove useless assignment
fatlength is not used after this assignment, so it is useless and can be removed. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/fat/fat.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index 87a1623..48c8844 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -210,7 +210,6 @@ static __u32 get_fatent(fsdata *mydata, __u32 entry)
if (startblock + getsize > fatlength)
getsize = fatlength - startblock;
- fatlength *= mydata->sect_size; /* We want it in bytes now */
startblock += mydata->fat_sect; /* Offset from start of disk */
if (disk_read(startblock, getsize, bufptr) < 0) {