changeset 769:120d6f247f1b

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 06 Nov 2012 01:27:40 +0200
parents f145ba458acd
children 72e58ecb1a2c
files src/xs_sidplay2.cc
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xs_sidplay2.cc	Tue Nov 06 01:15:28 2012 +0200
+++ b/src/xs_sidplay2.cc	Tue Nov 06 01:27:40 2012 +0200
@@ -426,10 +426,8 @@
  */
 void xs_sidplay2_close(XSEngineState * state)
 {
-    XSSIDPlay2 *engine;
-    assert(state);
+    XSSIDPlay2 *engine = (XSSIDPlay2 *) state->internal;
 
-    engine = (XSSIDPlay2 *) state->internal;
 
     /* Free internals */
     if (engine->builder) {
@@ -463,7 +461,8 @@
     if (!engine)
         return FALSE;
 
-    if (!engine->tune->selectSong(state->currSong)) {
+    if (!engine->tune->selectSong(state->currSong))
+    {
         xs_error("[SIDPlay2] tune->selectSong() failed\n");
         return FALSE;
     }