summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-10 16:45:27 -0500
committerDavid Robillard <d@drobilla.net>2022-12-10 19:04:45 -0500
commit3f209ff081bbcf0f15a3acfcb04b3371011f9f9d (patch)
treedfab914254be05df6e4738713bbd50b671f86b57 /bindings
parentd4dff3e6e9ea3c96d77c9b8f532dec070bdab850 (diff)
downloadlilv-3f209ff081bbcf0f15a3acfcb04b3371011f9f9d.tar.gz
lilv-3f209ff081bbcf0f15a3acfcb04b3371011f9f9d.tar.bz2
lilv-3f209ff081bbcf0f15a3acfcb04b3371011f9f9d.zip
Simplify trivial switch statements
Diffstat (limited to 'bindings')
-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;
}