_dbus_global_lock: move success case up into switch

This silences -Wswitch-default.

Based on part of a patch from Thomas Zimmermann.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
This commit is contained in:
Simon McVittie 2017-01-17 20:52:25 +00:00 committed by Simon McVittie
parent b044fa0c70
commit 6facca0336

View file

@ -2717,9 +2717,9 @@ HANDLE _dbus_global_lock (const char *mutexname)
case WAIT_FAILED:
case WAIT_TIMEOUT:
return 0;
default:
return mutex;
}
return mutex;
}
static