summaryrefslogtreecommitdiff
path: root/ubi-utils/src
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-04-20 16:16:33 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-04-20 16:18:37 +0300
commit0c2ff6f5a5d6cd1449c4f77240fc9e27e4782307 (patch)
tree897b302810fd1b7ad9255a229e100c775efb5aed /ubi-utils/src
parent06ebf95fa83f445309c4287960de1c6b64a3011c (diff)
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 <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src')
-rw-r--r--ubi-utils/src/ubinfo.c5
1 files changed, 1 insertions, 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 <stdio.h>
#include <stdint.h>
+#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
@@ -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");