File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ void rt_device_destroy(rt_device_t dev)
163163{
164164 /* parameter check */
165165 RT_ASSERT (dev != RT_NULL );
166- RT_ASSERT (rt_object_get_type (& dev -> parent ) == RT_Object_Class_Device );
166+ RT_ASSERT (rt_object_get_type (& dev -> parent ) == RT_Object_Class_Null );
167167 RT_ASSERT (rt_object_is_systemobject (& dev -> parent ) == RT_FALSE );
168168
169169 rt_object_detach (& (dev -> parent ));
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ void rt_object_detach(rt_object_t object)
429429 rt_list_remove (& (object -> list ));
430430 rt_spin_unlock_irqrestore (& (information -> spinlock ), level );
431431
432- object -> type = 0 ;
432+ object -> type = RT_Object_Class_Null ;
433433}
434434
435435#ifdef RT_USING_HEAP
You can’t perform that action at this time.
0 commit comments