From 34c36d8f8f5fd9add4afc80d81718013855c77b8 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 23 Apr 2013 21:24:36 +0200 Subject: AUDIO: Remove useless check --- backends/midi/seq.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'backends/midi') 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"); -- cgit v1.2.3