From 980014531483f4d0fec03a7558778514cc83fd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 15 Jun 2017 19:30:50 +0200 Subject: [PATCH] Slightly shorten the initialization of moduleID and pointerRole. --- right/src/config/parse_keymap.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/right/src/config/parse_keymap.c b/right/src/config/parse_keymap.c index c6797a4..6541307 100644 --- a/right/src/config/parse_keymap.c +++ b/right/src/config/parse_keymap.c @@ -164,11 +164,8 @@ static void parseKeyActions(uint8_t targetLayer, serialized_buffer_t *buffer, ui } static void parseModule(serialized_buffer_t *buffer, uint8_t targetLayer) { - uint8_t moduleID, pointerRole; - - moduleID = readUInt8(buffer); - pointerRole = readUInt8(buffer); - + uint8_t moduleID = readUInt8(buffer); + uint8_t pointerRole = readUInt8(buffer); parseKeyActions(targetLayer, buffer, moduleID, pointerRole); }