kernel: Make tag identifiers unique
Some places are using the same tag identifier with different types. This is a MISRA-C violation and makes the code less readable. MISRA-C rule 5.7 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
fcfcb7e902
commit
22236c9d6d
|
@ -291,11 +291,11 @@ struct _k_object *_k_object_find(void *obj)
|
|||
ret = _k_object_gperf_find(obj);
|
||||
|
||||
if (ret == NULL) {
|
||||
struct dyn_obj *dyn_obj;
|
||||
struct dyn_obj *dynamic_obj;
|
||||
|
||||
dyn_obj = dyn_object_find(obj);
|
||||
if (dyn_obj != NULL) {
|
||||
ret = &dyn_obj->kobj;
|
||||
dynamic_obj = dyn_object_find(obj);
|
||||
if (dynamic_obj != NULL) {
|
||||
ret = &dynamic_obj->kobj;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue