summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-08-25 07:36:29 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-08-25 07:36:29 +0000
commit32b658732cbcf80fa3f58189c821957992b581c3 (patch)
treeabdcb416dc51c274bdcbf46834cef20ce120cc63 /gnu/usr.bin/ld
parentd8e93d75b19cbb5f871e575b6d09bf3b3feb03d6 (diff)
Remove redundant test (which I am sure gcc removed by itself anyhow)
Diffstat (limited to 'gnu/usr.bin/ld')
-rw-r--r--gnu/usr.bin/ld/rrs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gnu/usr.bin/ld/rrs.c b/gnu/usr.bin/ld/rrs.c
index 2ecc96fd0a0..b2c92e6dfde 100644
--- a/gnu/usr.bin/ld/rrs.c
+++ b/gnu/usr.bin/ld/rrs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rrs.c,v 1.4 1999/08/24 19:08:47 niklas Exp $*/
+/* $OpenBSD: rrs.c,v 1.5 1999/08/25 07:36:28 niklas Exp $*/
/*
* Copyright (c) 1993 Paul Kranenburg
* All rights reserved.
@@ -164,10 +164,9 @@ dlopen_is_used()
* that is not in the text section, because such an entry is the
* definition.
*/
- if (sym)
- for (lsp = sym->refs; lsp; lsp = lsp->next)
- if (!(lsp->nzlist.nlist.n_type & N_TEXT))
- return 1;
+ for (lsp = sym->refs; lsp; lsp = lsp->next)
+ if (!(lsp->nzlist.nlist.n_type & N_TEXT))
+ return 1;
return 0;
}