summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-12-08 16:50:14 +0000
committerharti <harti@FreeBSD.org>2004-12-08 16:50:14 +0000
commitd9ec783dcb4653bc5f6993ab5f154827f5a58922 (patch)
tree5fff4a82ea1095a7cce68971b25b54767959efc8
parentbcfafac95eea540b16fc8b94f559b0a3d8e89020 (diff)
downloadFreeBSD-src-d9ec783dcb4653bc5f6993ab5f154827f5a58922.zip
FreeBSD-src-d9ec783dcb4653bc5f6993ab5f154827f5a58922.tar.gz
Don't check the return code from Lst_Remove. There is no way
that the list's first element is not on the list.
-rw-r--r--usr.bin/make/lst.lib/lstDeQueue.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/make/lst.lib/lstDeQueue.c b/usr.bin/make/lst.lib/lstDeQueue.c
index 2e3bf83..961411c 100644
--- a/usr.bin/make/lst.lib/lstDeQueue.c
+++ b/usr.bin/make/lst.lib/lstDeQueue.c
@@ -75,9 +75,6 @@ Lst_DeQueue(Lst *l)
}
rd = tln->datum;
- if (Lst_Remove(l, tln) == FAILURE) {
- return (NULL);
- } else {
- return (rd);
- }
+ Lst_Remove(l, tln);
+ return (rd);
}
OpenPOWER on IntegriCloud