diff options
author | Horms <horms@verge.net.au> | 2006-12-11 14:25:56 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-12-12 17:55:49 +0900 |
commit | 08d770bf0232938f8ab186ebe99cfabdc89800ee (patch) | |
tree | 6b083e87e859f55d7ec6c5ba1d362a5222399c6b /kexec | |
parent | e358b3ee211e0794cf5a6122b4db93198e0fdf40 (diff) |
kexec-tools: don't rely on errno to detect errors
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 <horms@verge.net.au>
Tested and working fine. Ack.
Acked-by: Sachin P. Sant <sachinp@in.ibm.com>
Diffstat (limited to 'kexec')
-rw-r--r-- | kexec/arch/ppc64/fs2dt.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kexec/arch/ppc64/fs2dt.c b/kexec/arch/ppc64/fs2dt.c index bdb6d5a..30b785f 100644 --- a/kexec/arch/ppc64/fs2dt.c +++ b/kexec/arch/ppc64/fs2dt.c @@ -276,10 +276,6 @@ static void putprops(char *fn, struct dirent **nlist, int numlist) } fn[0] = '\0'; - if(errno == ENOSYS) - errno = 0; - if (errno) - die("inrecoverable error: XXX: %s\n", strerror(errno)); checkprop(pathname, NULL); } @@ -386,8 +382,6 @@ static void putnode(void) if (S_ISDIR(statbuf.st_mode)) putnode(); } - if (errno) - die("unrecoverable error: XXX %s\n", strerror(errno)); *dt++ = 2; dn[-1] = '\0'; |