changeset 4866:c97b4291ec8b

We do not care about hook_find(name) past the if-statement. Do not assign to a variable.
author Tony Vroon <chainsaw@gentoo.org>
date Mon, 20 Apr 2009 00:12:18 +0100
parents f51f043d5e4c
children 0b965d4772f1
files src/audlegacy/hook.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audlegacy/hook.c	Sun Apr 19 23:52:10 2009 +0100
+++ b/src/audlegacy/hook.c	Mon Apr 20 00:12:18 2009 +0100
@@ -46,7 +46,7 @@
 
     g_return_if_fail(name != NULL);
 
-    if ((hook = hook_find(name)) != NULL)
+    if (hook_find(name) != NULL)
         return;
 
     hook = g_new0(Hook, 1);