mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 16:01:18 +01:00
gnrc/netreg: remove unnecessary DEVELHELP condition
This commit is contained in:
parent
2b734492fd
commit
321067b99f
@ -39,11 +39,9 @@ void gnrc_netreg_init(void)
|
||||
int gnrc_netreg_register(gnrc_nettype_t type, gnrc_netreg_entry_t *entry)
|
||||
{
|
||||
#if defined(MODULE_GNRC_NETAPI_MBOX) || defined(MODULE_GNRC_NETAPI_CALLBACKS)
|
||||
#ifdef DEVELHELP
|
||||
/* only threads with a message queue are allowed to register at gnrc */
|
||||
assert((entry->type != GNRC_NETREG_TYPE_DEFAULT) ||
|
||||
sched_threads[entry->target.pid]->msg_array);
|
||||
#endif
|
||||
#else
|
||||
/* only threads with a message queue are allowed to register at gnrc */
|
||||
assert(sched_threads[entry->target.pid]->msg_array);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user