diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-03-03 16:45:59 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-03-03 16:45:59 +0100 |
commit | 8eb36cfe855501309fbb829aa9bb199eb3428b10 (patch) | |
tree | b332dbc3bd8d080116ee843911b6c00ad488e8da | |
parent | 36c84f9a90d3edaa1fb4103dee5be7e684868019 (diff) | |
download | rockbox-8eb36cfe855501309fbb829aa9bb199eb3428b10.tar.gz rockbox-8eb36cfe855501309fbb829aa9bb199eb3428b10.zip |
matrix: shorten statement.
Change-Id: I08ac097cab4c2378a4e042b47934ef5870df003d
-rw-r--r-- | apps/plugins/matrix.c | 12 |
1 files 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) { | |||
255 | rb->sleep(sleep); | 255 | rb->sleep(sleep); |
256 | } | 256 | } |
257 | 257 | ||
258 | if(frozen) | 258 | button = pluginlib_getaction(frozen ? TIMEOUT_BLOCK : TIMEOUT_NOBLOCK, |
259 | { | 259 | plugin_contexts, ARRAYLEN(plugin_contexts)); |
260 | button = pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts, | ||
261 | ARRAYLEN(plugin_contexts)); | ||
262 | } | ||
263 | else | ||
264 | { | ||
265 | button = pluginlib_getaction(TIMEOUT_NOBLOCK, plugin_contexts, | ||
266 | ARRAYLEN(plugin_contexts)); | ||
267 | } | ||
268 | 260 | ||
269 | switch(button) { | 261 | switch(button) { |
270 | case MATRIX_PAUSE: | 262 | case MATRIX_PAUSE: |