diff options
author | Willem Jan Palenstijn | 2013-04-23 21:24:36 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-04-23 21:25:03 +0200 |
commit | 34c36d8f8f5fd9add4afc80d81718013855c77b8 (patch) | |
tree | 1f846cc650bd953c1f2fa4a117dd8d43b117b254 /backends/midi | |
parent | 182c1a1ff5af3a99beae203ae4041b69f53fa91f (diff) | |
download | scummvm-rg350-34c36d8f8f5fd9add4afc80d81718013855c77b8.tar.gz scummvm-rg350-34c36d8f8f5fd9add4afc80d81718013855c77b8.tar.bz2 scummvm-rg350-34c36d8f8f5fd9add4afc80d81718013855c77b8.zip |
AUDIO: Remove useless check
Diffstat (limited to 'backends/midi')
-rw-r--r-- | backends/midi/seq.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/backends/midi/seq.cpp b/backends/midi/seq.cpp index d48b80c40b..37986520bf 100644 --- a/backends/midi/seq.cpp +++ b/backends/midi/seq.cpp @@ -88,12 +88,9 @@ int MidiDriver_SEQ::open() { device = ::open((device_name), O_RDWR, 0); - if ((device_name == NULL) || (device < 0)) { - if (device_name == NULL) - warning("Opening /dev/null (no music will be heard)"); - else - warning("Cannot open rawmidi device %s - using /dev/null (no music will be heard)", - device_name); + if (device < 0) { + warning("Cannot open rawmidi device %s - using /dev/null (no music will be heard)", + device_name); device = (::open(("/dev/null"), O_RDWR, 0)); if (device < 0) error("Cannot open /dev/null to dump midi output"); |