mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 15:43:56 +00:00
base: fix warnings reported by LLVM analyzer
The warnings were false positives though.
This commit is contained in:
@ -97,15 +97,15 @@ class Genode::Capability_space_tpl
|
||||
|
||||
bool higher(Tree_managed_data *data)
|
||||
{
|
||||
return data->rpc_obj_key().value() > rpc_obj_key().value();
|
||||
return data->rpc_obj_key().value() > this->rpc_obj_key().value();
|
||||
}
|
||||
|
||||
Tree_managed_data *find_by_key(Rpc_obj_key key)
|
||||
{
|
||||
if (key.value() == rpc_obj_key().value()) return this;
|
||||
if (key.value() == this->rpc_obj_key().value()) return this;
|
||||
|
||||
Tree_managed_data *data =
|
||||
this->child(key.value() > rpc_obj_key().value());
|
||||
this->child(key.value() > this->rpc_obj_key().value());
|
||||
|
||||
return data ? data->find_by_key(key) : nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user