zink: change a memcmp==0 to !memcmp

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7801>
This commit is contained in:
Mike Blumenkrantz
2020-12-07 15:43:33 -05:00
committed by Marge Bot
parent b47407269d
commit 0ce792b2e2
+1 -1
View File
@@ -324,7 +324,7 @@ hash_gfx_pipeline_state(const void *key)
static bool
equals_gfx_pipeline_state(const void *a, const void *b)
{
return memcmp(a, b, offsetof(struct zink_gfx_pipeline_state, hash)) == 0;
return !memcmp(a, b, offsetof(struct zink_gfx_pipeline_state, hash));
}
static void