Skip to content
Snippets Groups Projects
Commit b01e6fe6 authored by Tom Rini's avatar Tom Rini Committed by Pantelis Antoniou
Browse files

cmd_mmc.c: Change 'bootpart' code to match normal coding style

parent 7dbe63bc
No related branches found
No related tags found
No related merge requests found
...@@ -314,11 +314,18 @@ static int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -314,11 +314,18 @@ static int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
} else if (strcmp(argv[1], "bootpart") == 0) { } else if (strcmp(argv[1], "bootpart") == 0) {
int dev; int dev;
dev = simple_strtoul(argv[2], NULL, 10); struct *mmc;
u32 bootsize, rpmbsize;
u32 bootsize = simple_strtoul(argv[3], NULL, 10); if (argc == 5) {
u32 rpmbsize = simple_strtoul(argv[4], NULL, 10); dev = simple_strtoul(argv[2], NULL, 10);
struct mmc *mmc = find_mmc_device(dev); bootsize = simple_strtoul(argv[3], NULL, 10);
rpmbsize = simple_strtoul(argv[4], NULL, 10);
} else {
return CMD_RET_USAGE;
}
mmc = find_mmc_device(dev);
if (!mmc) { if (!mmc) {
printf("no mmc device at slot %x\n", dev); printf("no mmc device at slot %x\n", dev);
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment