From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Beno=C3=AEt_Th=C3=A9baudeau?= Date: Fri, 20 Jul 2012 00:01:38 +0200 (CEST) Subject: [U-Boot] [PATCH 2/7] FAT: cosmetic: Remove useless assignment Message-ID: <1271273966.294115.1342735298731.JavaMail.root@advansee.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de fatlength is not used after this assignment, so it is useless and can be removed. Signed-off-by: Beno?t Th?baudeau Cc: Wolfgang Denk --- .../fs/fat/fat.c | 1 - 1 file changed, 1 deletion(-) diff --git u-boot-66714b1.orig/fs/fat/fat.c u-boot-66714b1/fs/fat/fat.c index f6fd457..e628cf7 100644 --- u-boot-66714b1.orig/fs/fat/fat.c +++ u-boot-66714b1/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) {