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:
Flavio Ceolin 2018-10-05 12:24:09 -07:00 committed by Anas Nashif
parent fcfcb7e902
commit 22236c9d6d

View file

@ -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;
}
}