summaryrefslogtreecommitdiff
path: root/cmd/ubi.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-12-05 15:06:24 -0500
committerTom Rini <trini@konsulko.com>2018-12-05 15:06:24 -0500
commit9450ab2ba8d720bd9f73bccc0af2e2b5a2c2aaf1 (patch)
treeb0566746ed9a8dd261e61113c19cf0a234a6417b /cmd/ubi.c
parenta77a8fde7bb850178c2e4ad3db354b536114ea32 (diff)
parent08898e8b22d74a4511eadee9b06b11aab43e809c (diff)
downloadu-boot-9450ab2ba8d720bd9f73bccc0af2e2b5a2c2aaf1.tar.gz
Merge branch 'master' of git://git.denx.de/u-boot-spi
- Various MTD fixes from Boris - Zap various unused / legacy paths. - pxa3xx NAND update from Miquel Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd/ubi.c')
-rw-r--r--cmd/ubi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/ubi.c b/cmd/ubi.c
index 2b74a98144..a12ac703eb 100644
--- a/cmd/ubi.c
+++ b/cmd/ubi.c
@@ -101,7 +101,6 @@ static int ubi_check(char *name)
return 1;
}
-
static int verify_mkvol_req(const struct ubi_device *ubi,
const struct ubi_mkvol_req *req)
{
@@ -415,7 +414,7 @@ static int ubi_dev_scan(struct mtd_info *info, const char *vid_header_offset)
return 0;
}
-int ubi_detach(void)
+static int ubi_detach(void)
{
#ifdef CONFIG_CMD_UBIFS
/*
@@ -473,7 +472,6 @@ static int do_ubi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (argc < 2)
return CMD_RET_USAGE;
-
if (strcmp(argv[1], "detach") == 0) {
if (argc < 2)
return CMD_RET_USAGE;
@@ -481,7 +479,6 @@ static int do_ubi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return ubi_detach();
}
-
if (strcmp(argv[1], "part") == 0) {
const char *vid_header_offset = NULL;