Skip to contentSkip to conversation

kexec-tools: ppc/ppc64: cleanup: Remove never reached return

PATCH Applied Zhang Yanfei 2 participants 2 messages May 26, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec-tools: ppc/ppc64: cleanup: Remove never reached return

From: Zhang Yanfei <[email protected]>

The return will never be reached, so remove it.

---
 kexec/arch/ppc/kexec-ppc.c     |    1 -
 kexec/arch/ppc64/kexec-ppc64.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
kexec/arch/ppc/kexec-ppc.c +0 -1
index 5a2966e..d046110 100644
@@ -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",
kexec/arch/ppc64/kexec-ppc64.c +0 -1
index 389741a..21bd0a8 100644
@@ -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);
Signature · 6 lines
1.7.1

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