驱动优化

This commit is contained in:
2026-05-19 22:34:08 +08:00
parent add7af4222
commit c9efc32d32
8 changed files with 52 additions and 22 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ void drv_device_unregister(drv_device_t* self){
drv_device_t* drv_device_find(const char* name){
drv_rbtree_node_t* p = drv_rbtree_find(&s_drv_rbtree, name);
if(p==NULL) return NULL;
return &p->device;
return p->device;
}