Don't check the return code from Lst_Remove. There is no way
that the list's first element is not on the list.
This commit is contained in:
parent
bcfafac95e
commit
d9ec783dcb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user