aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien2011-06-04 23:38:06 +0800
committerJulien2011-06-23 15:11:36 +0800
commit3ece07b14b0ffcac4050692715c182d637c041a2 (patch)
tree9b7660fa78b0c6f0a1239e536954a2fe36cf3206
parent979fc29be615fa11a095d59adf37d4077018983c (diff)
downloadscummvm-rg350-3ece07b14b0ffcac4050692715c182d637c041a2.tar.gz
scummvm-rg350-3ece07b14b0ffcac4050692715c182d637c041a2.tar.bz2
scummvm-rg350-3ece07b14b0ffcac4050692715c182d637c041a2.zip
AUDIO: Replace assignment in return call by separate assignment and return call.
-rw-r--r--audio/mpu401.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/mpu401.cpp b/audio/mpu401.cpp
index caad945258..966e367a93 100644
--- a/audio/mpu401.cpp
+++ b/audio/mpu401.cpp
@@ -33,7 +33,10 @@ void MidiChannel_MPU401::init(MidiDriver *owner, byte channel) {
bool MidiChannel_MPU401::allocate() {
if (_allocated)
return false;
- return (_allocated = true);
+
+ _allocated = true;
+
+ return true;
}
MidiDriver *MidiChannel_MPU401::device() {