diff options
author | cbdev <cb@cbcdn.com> | 2020-04-19 20:40:42 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2020-04-19 20:40:42 +0200 |
commit | 79b7e7dae5814942c04ca33e94e92b89547ffeb2 (patch) | |
tree | 0b1ca9a30b95d43604c81e7bde78786c33f8c186 /backends/evdev.c | |
parent | 7c1a283c9213dd273d04af72e24b08beb83aec12 (diff) | |
parent | 462b409d3d1fa16fcab0c7f8b475bb8d8e8b3e90 (diff) | |
download | midimonster-79b7e7dae5814942c04ca33e94e92b89547ffeb2.tar.gz midimonster-79b7e7dae5814942c04ca33e94e92b89547ffeb2.tar.bz2 midimonster-79b7e7dae5814942c04ca33e94e92b89547ffeb2.zip |
Merge current master to rtpmidirtpmidi
Diffstat (limited to 'backends/evdev.c')
-rw-r--r-- | backends/evdev.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/backends/evdev.c b/backends/evdev.c index af5ec74..8a14200 100644 --- a/backends/evdev.c +++ b/backends/evdev.c @@ -357,10 +357,6 @@ static int evdev_handle(size_t num, managed_fd* fds){ int read_status; struct input_event ev; - if(!num){ - return 0; - } - for(fd = 0; fd < num; fd++){ inst = (instance*) fds[fd].impl; if(!inst){ @@ -437,10 +433,6 @@ static int evdev_set(instance* inst, size_t num, channel** c, channel_value* v) int32_t value = 0; uint64_t range = 0; - if(!num){ - return 0; - } - if(!data->output_enabled){ LOGPF("Instance %s not enabled for output (%" PRIsize_t " channel events)", inst->name, num); return 0; |