[PATCH] ldso - removing unused code

olsajiri at gmail.com olsajiri at gmail.com
Sun Jan 4 19:32:23 UTC 2009


The goof variable is being set to 0 and never changed.

Signed-off-by: Jiri Olsa <olsajiri at gmail.com>
---
Index: ldso/ldso/dl-startup.c
===================================================================
--- ldso/ldso/dl-startup.c	(revision 24683)
+++ ldso/ldso/dl-startup.c	(working copy)
@@ -229,13 +229,12 @@
 	SEND_EARLY_STDERR_DEBUG("About to do library loader relocations\n");
 
 	{
-		int goof, indx;
+		int indx;
 #ifdef  ELF_MACHINE_PLTREL_OVERLAP
 # define INDX_MAX 1
 #else
 # define INDX_MAX 2
 #endif
-		goof = 0;
 		for (indx = 0; indx < INDX_MAX; indx++) {
 			unsigned int i;
 			unsigned long *reloc_addr;
@@ -291,10 +290,6 @@
 				PERFORM_BOOTSTRAP_RELOC(rpnt, reloc_addr, symbol_addr, load_addr, sym);
 			}
 		}
-
-		if (goof) {
-			_dl_exit(14);
-		}
 	}
 #endif
 


More information about the uClibc mailing list