summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2011-11-10 10:46:49 +0800
committerTerry Lv <r65388@freescale.com>2011-11-10 16:11:41 +0800
commit97efee177f82b082db9d2019ed641c5b99b3f54b (patch)
tree592131af109bd2349cadad6581f94d92e4da6e2a /common
parenta30b8dbe9cc199067c0cc5a2dc0d7322c9f4303a (diff)
downloadu-boot-imx-97efee177f82b082db9d2019ed641c5b99b3f54b.zip
u-boot-imx-97efee177f82b082db9d2019ed641c5b99b3f54b.tar.gz
u-boot-imx-97efee177f82b082db9d2019ed641c5b99b3f54b.tar.bz2
ENGR00161852: remove u-boot build warnings for mx6q
Remove u-boot build warnings for mx6q. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_mmc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index 85f0200..f1431d3 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -144,7 +144,7 @@ static void print_mmcinfo(struct mmc *mmc)
}
}
-int do_mmcinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_mmcinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
struct mmc *mmc;
@@ -177,7 +177,7 @@ U_BOOT_CMD(
""
);
-int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
enum mmc_state state;
@@ -342,7 +342,7 @@ int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (state != MMC_INVALID) {
struct mmc *mmc = find_mmc_device(curr_device);
int idx = 2;
- u32 blk, cnt, n;
+ u32 blk, cnt, n = 0;
void *addr;
if (state != MMC_ERASE) {