From d9ec783dcb4653bc5f6993ab5f154827f5a58922 Mon Sep 17 00:00:00 2001 From: harti Date: Wed, 8 Dec 2004 16:50:14 +0000 Subject: Don't check the return code from Lst_Remove. There is no way that the list's first element is not on the list. --- usr.bin/make/lst.lib/lstDeQueue.c | 7 ++----- 1 file 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); } -- cgit v1.1