mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
net/devif/devif_callback.c: remove harmful debug check
N/A Cause of curr maybe NULL, and following logic can handle this Change-Id: I999c051a8f2e2698400fc8793ba068073a306972 Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
904a602c74
commit
90f3d2851c
@@ -99,7 +99,6 @@ static void devif_callback_free(FAR struct net_driver_s *dev,
|
||||
|
||||
/* Remove the structure from the device event list */
|
||||
|
||||
DEBUGASSERT(curr);
|
||||
if (curr != NULL)
|
||||
{
|
||||
if (prev)
|
||||
|
||||
Reference in New Issue
Block a user