diff mbox

[U-Boot,v2,3/8] FAT: cosmetic: Remove useless assignment

Message ID 334701180.332550.1342790391497.JavaMail.root@advansee.com
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Benoît Thébaudeau July 20, 2012, 1:19 p.m. UTC
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>
---
Changes for v2:
 - Patch renumbering because of the new v2 1/8.
 - Possible code style changes due to the new v2 1/8.

 .../fs/fat/fat.c                                   |    1 -
 1 file changed, 1 deletion(-)

Comments

Wolfgang Denk Sept. 2, 2012, 3:15 p.m. UTC | #1
Dear Benoît Thébaudeau,

In message <334701180.332550.1342790391497.JavaMail.root@advansee.com> you wrote:
> 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>
> ---
> Changes for v2:
>  - Patch renumbering because of the new v2 1/8.
>  - Possible code style changes due to the new v2 1/8.
>
>  .../fs/fat/fat.c                                   |    1 -
>  1 file changed, 1 deletion(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git u-boot-66714b1.orig/fs/fat/fat.c u-boot-66714b1/fs/fat/fat.c
index 87a1623..48c8844 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) {