voron

experimental ARM OS
git clone git://git.2f30.org/voron
Log | Files | Refs | README | LICENSE

commit 69e2d993a545881d6e15a59b29e88d82b9e223fd
parent a4278f3bfd32165c8bbd453a6a3930f92165bbfa
Author: sin <sin@2f30.org>
Date:   Fri, 26 Jul 2013 15:42:17 +0100

Fix return values

Diffstat:
Mkernel/hash.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/hash.c b/kernel/hash.c @@ -64,7 +64,7 @@ search_htable(struct htable *ht, void *data, size_t siz) size_t j; if (!ht || !data || !siz) - return -1; + return -EINVAL; spinlock_lock(&ht->lock); ops = ht->ops; @@ -91,7 +91,7 @@ insert_htable(struct htable *ht, void *data, size_t siz) size_t j; if (!ht || !data || !siz) - return -1; + return -EINVAL; spinlock_lock(&ht->lock); ops = ht->ops; @@ -118,7 +118,7 @@ remove_htable(struct htable *ht, void *data, size_t siz) size_t j; if (!ht || !data || !siz) - return -1; + return -EINVAL; spinlock_lock(&ht->lock); ops = ht->ops;