summaryrefslogtreecommitdiff
path: root/ubi-utils/src/ubinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/ubinfo.c')
-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");