From: Zhang Yanfei <[email protected]>

The return will never be reached, so remove it.

Signed-off-by: Zhang Yanfei <[email protected]>
---
 kexec/arch/ppc/kexec-ppc.c     |    1 -
 kexec/arch/ppc64/kexec-ppc64.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/kexec/arch/ppc/kexec-ppc.c b/kexec/arch/ppc/kexec-ppc.c
index 5a2966e..d046110 100644
--- a/kexec/arch/ppc/kexec-ppc.c
+++ b/kexec/arch/ppc/kexec-ppc.c
@@ -736,7 +736,6 @@ static int get_devtree_details(unsigned long kexec_flags)
                                        != 1) {
                                perror(fname);
                                goto error_openfile;
-                               return -1;
                        }
                        memset(fname, 0, sizeof(fname));
                        sprintf(fname, "%s%s%s",
diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c
index 389741a..21bd0a8 100644
--- a/kexec/arch/ppc64/kexec-ppc64.c
+++ b/kexec/arch/ppc64/kexec-ppc64.c
@@ -590,7 +590,6 @@ static int get_devtree_details(unsigned long kexec_flags)
                        if (fread(&tce_base, sizeof(uint64_t), 1, file) != 1) {
                                perror(fname);
                                goto error_openfile;
-                               return -1;
                        }
                        memset(fname, 0, sizeof(fname));
                        strcpy(fname, device_tree);
-- 
1.7.1

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to