From 90f3d2851cf66b62a5bf380ba40f2cabd55c0cfa Mon Sep 17 00:00:00 2001 From: ligd Date: Thu, 22 Oct 2020 18:16:54 +0800 Subject: [PATCH] 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 --- net/devif/devif_callback.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/devif/devif_callback.c b/net/devif/devif_callback.c index 8a7e3b02ce..1d49a7c09c 100644 --- a/net/devif/devif_callback.c +++ b/net/devif/devif_callback.c @@ -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)