mtd/util flash_eraseall.c,1.20,1.21

gleixner at infradead.org gleixner at infradead.org
Thu Jan 27 05:05:04 EST 2005


Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv9673

Modified Files:
	flash_eraseall.c 
Log Message:
Bah. I will never understand why errnos are sign inverted in kernel and userspace

Index: flash_eraseall.c
===================================================================
RCS file: /home/cvs/mtd/util/flash_eraseall.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- flash_eraseall.c	25 Jan 2005 14:43:53 -0000	1.20
+++ flash_eraseall.c	27 Jan 2005 10:05:01 -0000	1.21
@@ -135,7 +135,7 @@
 					printf ("\nSkipping bad block at 0x%08x\n", erase.start);
 				continue;
 			} else if (ret < 0) {
-				if (errno == -EOPNOTSUPP) {
+				if (errno == EOPNOTSUPP) {
 					bbtest = 0;
 					if (isNAND) {
 						fprintf(stderr, "%s: %s: Bad block check not available\n", exe_name, mtd_device);





More information about the linux-mtd-cvs mailing list