diff options
author | David Robillard <d@drobilla.net> | 2018-09-23 13:47:44 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-23 13:47:44 +0200 |
commit | 9337cb4993f4db09567dc6e274b0a78aed99f136 (patch) | |
tree | 9f59fe3b1c321217959a5cd6dc07ff92fc834c11 /lv2/event | |
parent | e7041238e4d5ee3bb7e10680e0d786e22c279b30 (diff) | |
download | lv2-9337cb4993f4db09567dc6e274b0a78aed99f136.tar.xz |
Shrink code slightly by removing some if-else structure
Diffstat (limited to 'lv2/event')
-rw-r--r-- | lv2/event/event-helpers.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lv2/event/event-helpers.h b/lv2/event/event-helpers.h index eaac287..f514155 100644 --- a/lv2/event/event-helpers.h +++ b/lv2/event/event-helpers.h @@ -80,9 +80,8 @@ lv2_event_buffer_new(uint32_t capacity, uint16_t stamp_type) buf->capacity = capacity; lv2_event_buffer_reset(buf, stamp_type, (uint8_t *)(buf + 1)); return buf; - } else { - return NULL; } + return NULL; } |