]> git.sur5r.net Git - u-boot/commitdiff
FAT: cosmetic: Remove useless assignment
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Fri, 20 Jul 2012 13:19:51 +0000 (15:19 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 2 Sep 2012 15:15:16 +0000 (17:15 +0200)
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>
fs/fat/fat.c

index 87a1623d19682d579daef033482841359d1c62c3..48c88448a3085f5c7d099a0787629c6f77a0f6d5 100644 (file)
@@ -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) {