From e31f28d677ea55f12d92f62a86a739ebc999c787 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 20 Jul 2009 01:58:43 +0000 Subject: [PATCH] Since we are not using the returned pointer from eina_hash_find here, we can remove the variable as eina_hash_find will return NULL is nothing is found. SVN revision: 41444 --- src/bin/e_filereg.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/bin/e_filereg.c b/src/bin/e_filereg.c index eb12beaea..b2e0e1f83 100644 --- a/src/bin/e_filereg.c +++ b/src/bin/e_filereg.c @@ -79,11 +79,8 @@ e_filereg_deregister(const char *path) EAPI Eina_Bool e_filereg_file_protected(const char *path) { - Filereg_Item *fi = NULL; - - fi = eina_hash_find(_e_filereg, path); - if (!fi) return EINA_FALSE; - return EINA_TRUE; + if (eina_hash_find(_e_filereg, path)) return EINA_TRUE; + return EINA_FALSE; } /* Private Functions */