删除非必要assert,否则可能导致demo卡主

This commit is contained in:
建峰 2025-04-30 23:43:54 +08:00
parent 9322db6b62
commit df006ba37a
2 changed files with 0 additions and 2 deletions

View File

@ -200,7 +200,6 @@ static void demo_stack_struct(void)
} }
} }
stack->_destory(stack);
stack_free(&stack); stack_free(&stack);
} }

View File

@ -124,7 +124,6 @@ static uint32_t stack_capacity(struct _stack* self)
static bool stack_clear(struct _stack* self) static bool stack_clear(struct _stack* self)
{ {
assert(self != NULL); assert(self != NULL);
assert(self->_head != NULL);
if (self->empty(self)) if (self->empty(self))
{ {
return true; return true;