Errno is designed to check for additional information if
errors occur. Not to be some kind of global flag set by either
libc or applications to flag that an error occured.

This patch removes the checking of errnor for some prior error somewhere.
It relies on some earlier patches which check functions like lseek()
for errors.

Signed-off-by: Simon Horman <[EMAIL PROTECTED]>

Index: kexec-tools-testing/kexec/arch/ppc64/fs2dt.c
===================================================================
--- kexec-tools-testing.orig/kexec/arch/ppc64/fs2dt.c   2006-12-11 
14:46:15.000000000 +0900
+++ kexec-tools-testing/kexec/arch/ppc64/fs2dt.c        2006-12-11 
14:46:20.000000000 +0900
@@ -279,10 +279,6 @@
        }
 
        fn[0] = '\0';
-       if(errno == ENOSYS)
-               errno = 0;
-       if (errno)
-               die("inrecoverable error: XXX: %s\n", strerror(errno));
        checkprop(pathname, NULL);
 }
 
@@ -389,8 +385,6 @@
                if (S_ISDIR(statbuf.st_mode))
                        putnode();
        }
-       if (errno)
-               die("unrecoverable error: XXX %s\n", strerror(errno));
 
        *dt++ = 2;
        dn[-1] = '\0';

--

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to