aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/hashlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/hashlib.h b/kernel/hashlib.h
index 280b1693f..abdeefa13 100644
--- a/kernel/hashlib.h
+++ b/kernel/hashlib.h
@@ -136,8 +136,8 @@ struct hash_cstr_ops {
static inline unsigned int hash(const char *a) {
unsigned int hash = mkhash_init;
while (*a)
- hash = mkhash(hash, *(a++));
- return hash;
+ hash = mkhash(hash, *(a++));
+ return hash;
}
};