projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41b2de4
)
remove unnecessary (?) conditional.
author
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 7 Dec 2015 17:03:32 +0000
(12:03 -0500)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/libs/surfaces/faderport/faderport.cc
b/libs/surfaces/faderport/faderport.cc
index cf8cd2eff2a301ff1c14ac3cd9ee4361ffa9a19a..97155480e7b56e79086e6a0b1a9cd8f2154b0af7 100644
(file)
--- 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);