From 2c1d62d622a928d1b18ace84c543fc2ff6e4d960 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 7 Feb 2014 17:10:37 -0800 Subject: [PATCH] Remove a pre-uapi hack from nandread. We only have uapi headers now. Change-Id: I2c02e10bb3bba4006579772f3ab2a18c2df7535d --- toolbox/nandread.c | 4 ---- 1 file changed, 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));