2
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
5a12da43be

+ 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);