From 596df9846604fab8aef40031a73baac1adf3d83b Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Tue, 5 Jul 2011 18:56:33 +0100 Subject: [PATCH] wocky_auth_registry_has_mechanism: simplify! --- wocky/wocky-auth-registry.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/wocky/wocky-auth-registry.c b/wocky/wocky-auth-registry.c index 96aa9da..7960852 100644 --- a/wocky/wocky-auth-registry.c +++ b/wocky/wocky-auth-registry.c @@ -176,11 +176,7 @@ wocky_auth_registry_has_mechanism ( GSList *list, const gchar *mech) { - GSList *t; - - t = g_slist_find_custom (list, mech, (GCompareFunc) g_strcmp0); - - return (t != NULL); + return (g_slist_find_custom (list, mech, (GCompareFunc) g_strcmp0) != NULL); } WockyAuthRegistryStartData * -- 1.7.5.4