remove unnecessary (?) conditional.
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Dec 2015 17:03:32 +0000 (12:03 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Dec 2015 17:38:17 +0000 (12:38 -0500)
Given that we use "port" after the test, the test makes no sense

libs/surfaces/faderport/faderport.cc

index cf8cd2eff2a301ff1c14ac3cd9ee4361ffa9a19a..97155480e7b56e79086e6a0b1a9cd8f2154b0af7 100644 (file)
@@ -680,10 +680,7 @@ FaderPort::midi_input_handler (Glib::IOCondition ioc, boost::shared_ptr<ARDOUR::
 
        if (ioc & IO_IN) {
 
-               if (port) {
-                       port->clear ();
-               }
-
+               port->clear ();
                DEBUG_TRACE (DEBUG::FaderPort, string_compose ("data available on %1\n", boost::shared_ptr<MIDI::Port>(port)->name()));
                framepos_t now = session->engine().sample_time();
                port->parse (now);