浏览代码

usrloc(k): fix detection of usrloc callbacks

- proper check of ul callback types
- harmless, just a bit of performance gain, however, the code was
  mistaken
Daniel-Constantin Mierla 13 年之前
父节点
当前提交
5a12da43be
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules_k/usrloc/ul_callback.h

+ 1 - 1
modules_k/usrloc/ul_callback.h

@@ -67,7 +67,7 @@ extern struct ulcb_head_list*  ulcb_list;
 
 
 #define exists_ulcb_type(_types_) \
-	( (ulcb_list->reg_types)|(_types_) )
+	( (ulcb_list->reg_types)&(_types_) )
 
 
 int init_ulcb_list(void);