diff options
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"); |