[U-Boot] [PATCH] cmd_fat.c: fix build warning

Anatolij Gustschin agust at denx.de
Sat Sep 29 12:52:55 CEST 2012


Commit cfda5aeab89d73779e26f0d34cf10f64caa67431
(cmd_fat: use common get_device_and_partition function)
introduced a warning:
cmd_fat.c: In function 'do_fat_fswrite':
cmd_fat.c:178:8: warning: unused variable 'ep' [-Wunused-variable]

Fix it.

Signed-off-by: Anatolij Gustschin <agust at denx.de>
---
 common/cmd_fat.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/common/cmd_fat.c b/common/cmd_fat.c
index 55585c6..5a5698b 100644
--- a/common/cmd_fat.c
+++ b/common/cmd_fat.c
@@ -175,7 +175,6 @@ static int do_fat_fswrite(cmd_tbl_t *cmdtp, int flag,
 	disk_partition_t info;
 	int dev = 0;
 	int part = 1;
-	char *ep;
 
 	if (argc < 5)
 		return cmd_usage(cmdtp);
-- 
1.7.1



More information about the U-Boot mailing list