aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-midigate.lv2/midigate.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-16 16:48:43 +0100
committerDavid Robillard <d@drobilla.net>2020-12-16 16:48:43 +0100
commit37ec8d59b349b9b735b58134a72e7372f36345dc (patch)
treed420f7a419fdfff739ba3d549008d3ffe97d233a /plugins/eg-midigate.lv2/midigate.c
parentc51699efe9064ff3b59ee40db81a0b92e3d01272 (diff)
downloadlv2-37ec8d59b349b9b735b58134a72e7372f36345dc.tar.xz
Simplify degenerate switches
Diffstat (limited to 'plugins/eg-midigate.lv2/midigate.c')
-rw-r--r--plugins/eg-midigate.lv2/midigate.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/eg-midigate.lv2/midigate.c b/plugins/eg-midigate.lv2/midigate.c
index 70901f6..4d1385e 100644
--- a/plugins/eg-midigate.lv2/midigate.c
+++ b/plugins/eg-midigate.lv2/midigate.c
@@ -231,10 +231,5 @@ LV2_SYMBOL_EXPORT
const LV2_Descriptor*
lv2_descriptor(uint32_t index)
{
- switch (index) {
- case 0:
- return &descriptor;
- default:
- return NULL;
- }
+ return index == 0 ? &descriptor : NULL;
}