From d0859040ac3fd8fba0c6546002df387206f58897 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Wed, 10 Dec 2014 16:40:19 +0100 Subject: Remove unused variables Signed-off-by: Michael Buesch --- firmware/controller.c | 2 -- firmware/main.c | 1 - 2 files changed, 3 deletions(-) diff --git a/firmware/controller.c b/firmware/controller.c index 65debe9..42aba13 100644 --- a/firmware/controller.c +++ b/firmware/controller.c @@ -201,8 +201,6 @@ static void pot_remanent_state_commit_eeprom(struct flowerpot *pot) static void pot_info(struct flowerpot *pot, uint8_t log_class, uint8_t log_code, uint8_t log_data) { - struct log_item log; - if (!(pot_config(pot)->flags & POT_FLG_LOG)) { /* Logging is disabled. Do not emit the message. */ return; diff --git a/firmware/main.c b/firmware/main.c index 44f1fbd..1eb8328 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -364,7 +364,6 @@ static void handle_rtc(jiffies_t now) static enum onoff_state handle_onoffswitch(void) { enum onoff_state hw_switch; - struct log_item log; hw_switch = onoffswitch_get_state(); -- cgit v1.2.3