diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-02-08 13:26:20 -0800 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-02-29 09:19:17 +0200 |
commit | c3e2250260f9ab7846cea5ae974ddb7379a8fef6 (patch) | |
tree | d927dab42854f185a97e3c5c86e3d69b2d439346 /tests/fs-tests/lib/tests.c | |
parent | 71c76e74661492b4f68f670514866cfc85f47089 (diff) |
libmtd: perform device checking first
If we don't check for the MTD before calling `legacy_get_dev_info1', we may
get errors like:
libmtd: MTD subsystem is old and does not support sysfs, so MTD character device nodes have to exist
libmtd: error!: "/dev/mtd2" is not a character device
mtdinfo: error!: libmtd failed get MTD device 2 information
error 22 (Invalid argument)
So reverse the order of these two checks.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'tests/fs-tests/lib/tests.c')
0 files changed, 0 insertions, 0 deletions