diff options
author | Elliott Hughes <enh@google.com> | 2014-02-07 17:10:37 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-02-07 17:10:37 -0800 |
commit | 2c1d62d622a928d1b18ace84c543fc2ff6e4d960 (patch) | |
tree | 4891cf5ba4d90457aa90406515df314fb5b74781 /toolbox/nandread.c | |
parent | 13274a2661eeb9aa4b2f82db6fd11edc22af1d8a (diff) | |
download | core-2c1d62d622a928d1b18ace84c543fc2ff6e4d960.tar.gz core-2c1d62d622a928d1b18ace84c543fc2ff6e4d960.tar.bz2 core-2c1d62d622a928d1b18ace84c543fc2ff6e4d960.zip |
Remove a pre-uapi hack from nandread.
We only have uapi headers now.
Change-Id: I2c02e10bb3bba4006579772f3ab2a18c2df7535d
Diffstat (limited to 'toolbox/nandread.c')
-rw-r--r-- | toolbox/nandread.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/toolbox/nandread.c b/toolbox/nandread.c index d43b2febe..971c232f5 100644 --- a/toolbox/nandread.c +++ b/toolbox/nandread.c @@ -177,11 +177,7 @@ int nandread_main(int argc, char **argv) if (rawmode) { rawmode = mtdinfo.oobsize; -#if !defined(MTD_STUPID_LOCK) /* using uapi kernel headers */ ret = ioctl(fd, MTDFILEMODE, MTD_FILE_MODE_RAW); -#else /* still using old kernel headers */ - ret = ioctl(fd, MTDFILEMODE, MTD_MODE_RAW); -#endif if (ret) { fprintf(stderr, "failed set raw mode for %s, %s\n", devname, strerror(errno)); |