From 90412706a26166d4a8ceb74f926966e1534df1bf Mon Sep 17 00:00:00 2001 From: Robert Moore Date: Wed, 15 Apr 2009 13:45:45 -0700 Subject: [PATCH] Unix OSL: Fix return value for ALTERNATE_TIMEOUT. Was using break improperly. --- source/os_specific/service_layers/osunixxf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/os_specific/service_layers/osunixxf.c b/source/os_specific/service_layers/osunixxf.c index 54d947499..b430e83f1 100644 --- a/source/os_specific/service_layers/osunixxf.c +++ b/source/os_specific/service_layers/osunixxf.c @@ -652,8 +652,8 @@ AcpiOsWaitSemaphore ( { if (sem_trywait (Sem) == 0) { - /* got the semaphore */ - break; + /* Got the semaphore */ + return (AE_OK); } usleep (1000); /* one millisecond */ Timeout--;