src/thread/psp/SDL_sysmutex.c
changeset 7037 3fedf1f25b94
parent 7009 161b7b6a5303
child 8093 b43765095a6f
--- a/src/thread/psp/SDL_sysmutex.c	Fri Mar 29 21:29:57 2013 -0400
+++ b/src/thread/psp/SDL_sysmutex.c	Sun Mar 31 12:48:50 2013 -0400
@@ -78,8 +78,7 @@
     SDL_threadID this_thread;
 
     if (mutex == NULL) {
-        SDL_SetError("Passed a NULL mutex");
-        return -1;
+        return SDL_SetError("Passed a NULL mutex");
     }
 
     this_thread = SDL_ThreadID();
@@ -107,14 +106,12 @@
     return 0;
 #else
     if (mutex == NULL) {
-        SDL_SetError("Passed a NULL mutex");
-        return -1;
+        return SDL_SetError("Passed a NULL mutex");
     }
 
     /* If we don't own the mutex, we can't unlock it */
     if (SDL_ThreadID() != mutex->owner) {
-        SDL_SetError("mutex not owned by this thread");
-        return -1;
+        return SDL_SetError("mutex not owned by this thread");
     }
 
     if (mutex->recursive) {