aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-05-30 02:10:06 -0700
committerChris Robinson <[email protected]>2016-05-30 02:10:06 -0700
commit612b24fa9186776cf77b095f723aea5b4b1fc4ab (patch)
treedb185d5f504a842dd51d6e5f52fc1e82bfa0c573
parent70a105c22ca79baccbf6e9ba6a64b7c31eebe3df (diff)
Clean up a couple variable names and declarations
-rw-r--r--Alc/ALc.c8
-rw-r--r--Alc/backends/base.c5
2 files changed, 6 insertions, 7 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index b4582b0e..d41aa0d4 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -782,13 +782,13 @@ static ATOMIC(ALCdevice*) DeviceList = ATOMIC_INIT_STATIC(NULL);
static almtx_t ListLock;
static inline void LockLists(void)
{
- int lockret = almtx_lock(&ListLock);
- assert(lockret == althrd_success);
+ int ret = almtx_lock(&ListLock);
+ assert(ret == althrd_success);
}
static inline void UnlockLists(void)
{
- int unlockret = almtx_unlock(&ListLock);
- assert(unlockret == althrd_success);
+ int ret = almtx_unlock(&ListLock);
+ assert(ret == althrd_success);
}
/************************************************
diff --git a/Alc/backends/base.c b/Alc/backends/base.c
index 07c33ba1..ff808f53 100644
--- a/Alc/backends/base.c
+++ b/Alc/backends/base.c
@@ -13,10 +13,9 @@ extern inline ALuint64 GetDeviceClockTime(ALCdevice *device);
/* Base ALCbackend method implementations. */
void ALCbackend_Construct(ALCbackend *self, ALCdevice *device)
{
- int ret;
- self->mDevice = device;
- ret = almtx_init(&self->mMutex, almtx_recursive);
+ int ret = almtx_init(&self->mMutex, almtx_recursive);
assert(ret == althrd_success);
+ self->mDevice = device;
}
void ALCbackend_Destruct(ALCbackend *self)