summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric@efl.so>2013-10-14 13:22:45 +0200
committerCedric BAIL <cedric@efl.so>2013-10-14 13:32:46 +0200
commit1c1b48ca64c4d13cfd3677cde1ee99e4cf6c2c15 (patch)
treec156b5f6a91286753abe2bb6a3026cacfb2c1bbe /src
parentc7c08b0e3eb8881738d5df160f290c6938234f7b (diff)
eina: fix CID 1106340: Logically dead code (DEADCODE) reported by coverity.
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_inline_lock_posix.x3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eina/eina_inline_lock_posix.x b/src/lib/eina/eina_inline_lock_posix.x
index 2e5b038ea4..3d909296b0 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)
608 { 608 {
609 if (errno == EBUSY) sched_yield(); 609 if (errno == EBUSY) sched_yield();
610 else if (errno == EDEADLK) return EINA_LOCK_DEADLOCK; 610 else if (errno == EDEADLK) return EINA_LOCK_DEADLOCK;
611 else return EINA_LOCK_FAIL;
611 } 612 }
612 } while (t != 0); 613 } while (t != 0);
613 614
614 return t ? EINA_LOCK_FAIL : EINA_LOCK_SUCCEED; 615 return EINA_LOCK_SUCCEED;
615#else 616#else
616 return eina_lock_take(spinlock); 617 return eina_lock_take(spinlock);
617#endif 618#endif