From 179c221dd7610b76d076ac5d2121b1ebea70c955 Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Thu, 4 Jul 2013 16:01:45 +0800 Subject: [PATCH 2/2] Hash: remove redundant AND operation Signed-off-by: Chengwei Yang --- dbus/dbus-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-hash.c b/dbus/dbus-hash.c index f75bcc0..03e3dd0 100644 --- a/dbus/dbus-hash.c +++ b/dbus/dbus-hash.c @@ -902,7 +902,7 @@ find_direct_function (DBusHashTable *table, { unsigned int idx; - idx = RANDOM_INDEX (table, key) & table->mask; + idx = RANDOM_INDEX (table, key); return find_generic_function (table, key, idx, -- 1.7.9.5