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
2e022816d8
commit
74c71bfc19
@ -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