Skip to content
Commit 4817a414 authored by Peter Bigot's avatar Peter Bigot Committed by Anas Nashif
Browse files

net: ip: remove incorrect check of work item status



Checking whether a work item is pending before submitting it is racy:
the item may be finishing up in its handler, and essentially
completed, in which case chosing not to resubmit would leave work
unhandled.

In this case it appears very wrong, since the sole call site in
net_if.c has just initialized the work item, which is not permitted if
the work item is pending.

Remove the check.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent 66f699b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment