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:
David Herrmann 2012-08-08 15:14:35 +02:00
parent f880a3abdb
commit 1de4f67f44

View File

@ -391,7 +391,7 @@ bool kmscon_hashtable_find(struct kmscon_hashtable *tbl, void **out, void *key)
size_t hash; size_t hash;
if (!tbl) if (!tbl)
return -EINVAL; return false;
hash = tbl->hash_cb(key); hash = tbl->hash_cb(key);