diff options
author | Stefan Roese <sr@denx.de> | 2018-10-31 12:37:20 +0100 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-11-22 11:39:52 +0530 |
commit | d821e5edfb8023dc01baa8e1fc0487485f313db2 (patch) | |
tree | 345418bf13b6103b8e4188a53681d7b547002571 /cmd/ubi.c | |
parent | c907464a0ad5f1327a3873e9d0ffd617a0182a44 (diff) | |
download | u-boot-d821e5edfb8023dc01baa8e1fc0487485f313db2.tar.gz u-boot-d821e5edfb8023dc01baa8e1fc0487485f313db2.tar.bz2 u-boot-d821e5edfb8023dc01baa8e1fc0487485f313db2.zip |
cmd: ubi: Make ubi_detach() static
Its only called from this file, so make it static. While at it, remove
some occurances of multiple blank lines as well.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Boris Brezillon <boris.brezillon@bootlin.com>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'cmd/ubi.c')
-rw-r--r-- | cmd/ubi.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |