From 63c97763e7cf52d14e948256fafd6c5dfb2eb318 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 9 Apr 2015 07:01:31 +0200 Subject: [PATCH] (psp1_audio.c) Style nits --- audio/drivers/psp1_audio.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/audio/drivers/psp1_audio.c b/audio/drivers/psp1_audio.c index 1edd85bb9f..6d42872452 100644 --- a/audio/drivers/psp1_audio.c +++ b/audio/drivers/psp1_audio.c @@ -71,16 +71,14 @@ static int audioMainLoop(SceSize args, void* argp) static void *psp_audio_init(const char *device, unsigned rate, unsigned latency) { - psp1_audio_t* psp; - - (void)device; - (void)latency; - - psp = (psp1_audio_t*)calloc(1, sizeof(psp1_audio_t)); + psp1_audio_t *psp = (psp1_audio_t*)calloc(1, sizeof(psp1_audio_t)); if (!psp) return NULL; + (void)device; + (void)latency; + /* Cache aligned, not necessary but helpful. */ psp->buffer = (uint32_t*) memalign(64, AUDIO_BUFFER_SIZE * sizeof(uint32_t)); @@ -164,10 +162,10 @@ static bool psp_audio_alive(void *data) static bool psp_audio_stop(void *data) { SceKernelThreadRunStatus runStatus; - SceUInt timeout = 100000; + SceUInt timeout = 100000; psp1_audio_t* psp = (psp1_audio_t*)data; - runStatus.size = sizeof(SceKernelThreadRunStatus); + runStatus.size = sizeof(SceKernelThreadRunStatus); if (sceKernelReferThreadRunStatus( psp->thread, &runStatus) < 0) /* Error */ @@ -186,7 +184,7 @@ static bool psp_audio_start(void *data) SceKernelThreadRunStatus runStatus; psp1_audio_t* psp = (psp1_audio_t*)data; - runStatus.size = sizeof(SceKernelThreadRunStatus); + runStatus.size = sizeof(SceKernelThreadRunStatus); if (sceKernelReferThreadRunStatus( psp->thread, &runStatus) < 0) /* Error */