From 0c2ff6f5a5d6cd1449c4f77240fc9e27e4782307 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Mon, 20 Apr 2009 16:16:33 +0300 Subject: 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 --- ubi-utils/src/ubinfo.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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"); -- cgit v1.2.3