From 8eb36cfe855501309fbb829aa9bb199eb3428b10 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 3 Mar 2012 16:45:59 +0100 Subject: [PATCH] matrix: shorten statement. Change-Id: I08ac097cab4c2378a4e042b47934ef5870df003d --- apps/plugins/matrix.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/apps/plugins/matrix.c b/apps/plugins/matrix.c index 54e23e6320..428dc093bf 100644 --- a/apps/plugins/matrix.c +++ b/apps/plugins/matrix.c @@ -255,16 +255,8 @@ enum plugin_status plugin_start(const void* parameter) { rb->sleep(sleep); } - if(frozen) - { - button = pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts, - ARRAYLEN(plugin_contexts)); - } - else - { - button = pluginlib_getaction(TIMEOUT_NOBLOCK, plugin_contexts, - ARRAYLEN(plugin_contexts)); - } + button = pluginlib_getaction(frozen ? TIMEOUT_BLOCK : TIMEOUT_NOBLOCK, + plugin_contexts, ARRAYLEN(plugin_contexts)); switch(button) { case MATRIX_PAUSE: