summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-12-07 12:03:32 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-12-07 12:38:17 -0500
commit2f48997dfbda7e89f9e4eabe27797321c896cb5b (patch)
treee98ab7316cb501508e99b4947ff91ee37a430168 /libs
parent41b2de41d69c2ecc381867e502e4760267275425 (diff)
remove unnecessary (?) conditional.
Given that we use "port" after the test, the test makes no sense
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/faderport/faderport.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/surfaces/faderport/faderport.cc b/libs/surfaces/faderport/faderport.cc
index cf8cd2eff2..97155480e7 100644
--- a/libs/surfaces/faderport/faderport.cc
+++ b/libs/surfaces/faderport/faderport.cc
@@ -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);