summaryrefslogtreecommitdiffstats
path: root/bindings/test/bindings_test_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/test/bindings_test_plugin.c')
-rw-r--r--bindings/test/bindings_test_plugin.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/bindings/test/bindings_test_plugin.c b/bindings/test/bindings_test_plugin.c
index 15978b0..18907d5 100644
--- a/bindings/test/bindings_test_plugin.c
+++ b/bindings/test/bindings_test_plugin.c
@@ -184,10 +184,5 @@ LV2_SYMBOL_EXPORT
const LV2_Descriptor*
lv2_descriptor(uint32_t index)
{
- switch (index) {
- case 0:
- return &descriptor;
- default:
- return NULL;
- }
+ return index ? NULL : &descriptor;
}