From: Artem Bityutskiy Date: Mon, 20 Apr 2009 13:16:33 +0000 (+0300) Subject: ubinfo: handle -d correctly X-Git-Tag: v1.3.0~69 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0c2ff6f5a5d6cd1449c4f77240fc9e27e4782307;p=mtd-utils.git ubinfo: handle -d correctly Fix ubinfo utility and make it handle -d parameter correctly. Without this patch it simple refuses working with -d. Signed-off-by: Artem Bityutskiy --- diff --git a/ubi-utils/src/ubinfo.c b/ubi-utils/src/ubinfo.c index 536ec01..62d42b0 100644 --- a/ubi-utils/src/ubinfo.c +++ b/ubi-utils/src/ubinfo.c @@ -21,8 +21,8 @@ * Author: Artem Bityutskiy */ -#include #include +#include #include #include #include @@ -364,9 +364,6 @@ int main(int argc, char * const argv[]) if (err) return -1; - if (!args.node && args.devn != -1) - return errmsg("specify either device number or node file (use -h for help)"); - libubi = libubi_open(1); if (libubi == NULL) return sys_errmsg("cannot open libubi");