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:
ligd 2020-10-22 18:16:54 +08:00 committed by Alan Carvalho de Assis
parent 904a602c74
commit 90f3d2851c
1 changed files with 0 additions and 1 deletions

View File

@ -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)