From: Cedric BAIL Date: Mon, 14 Oct 2013 11:22:45 +0000 (+0200) Subject: eina: fix CID 1106340: Logically dead code (DEADCODE) reported by coverity. X-Git-Tag: submit/devel/efl/20131029.075644~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c1b48ca64c4d13cfd3677cde1ee99e4cf6c2c15;p=platform%2Fupstream%2Fefl.git eina: fix CID 1106340: Logically dead code (DEADCODE) reported by coverity. --- diff --git a/src/lib/eina/eina_inline_lock_posix.x b/src/lib/eina/eina_inline_lock_posix.x index 2e5b038..3d90929 100644 --- a/src/lib/eina/eina_inline_lock_posix.x +++ b/src/lib/eina/eina_inline_lock_posix.x @@ -608,10 +608,11 @@ eina_spinlock_take(Eina_Spinlock *spinlock) { if (errno == EBUSY) sched_yield(); else if (errno == EDEADLK) return EINA_LOCK_DEADLOCK; + else return EINA_LOCK_FAIL; } } while (t != 0); - return t ? EINA_LOCK_FAIL : EINA_LOCK_SUCCEED; + return EINA_LOCK_SUCCEED; #else return eina_lock_take(spinlock); #endif