Răsfoiți Sursa

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 ani în urmă
părinte
comite
5a12da43be
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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_) \
 #define exists_ulcb_type(_types_) \
-	( (ulcb_list->reg_types)|(_types_) )
+	( (ulcb_list->reg_types)&(_types_) )
 
 
 
 
 int init_ulcb_list(void);
 int init_ulcb_list(void);