misc: fix returning false in kmscon_hashtable_find() when invalid
We currently return "true" if the hashtable is invalid which is irritating. Fix this to be "false". Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
f880a3abdb
commit
1de4f67f44
@ -391,7 +391,7 @@ bool kmscon_hashtable_find(struct kmscon_hashtable *tbl, void **out, void *key)
|
||||
size_t hash;
|
||||
|
||||
if (!tbl)
|
||||
return -EINVAL;
|
||||
return false;
|
||||
|
||||
hash = tbl->hash_cb(key);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user