From acbe7a8af3e6323d56a1ea9fd4959142a14194fc Mon Sep 17 00:00:00 2001 From: Armin Wolf Date: Tue, 30 Jan 2024 19:19:45 +0100 Subject: [PATCH] cpu/native: timer: Remove unnecessary uses of `(void)` In `timer_init`, `freq` is being check so its not unused. In `timer_set_periodic`, `flags` is being used too. Remove the uses of `(void)` in both cases. Signed-off-by: Armin Wolf --- cpu/native/periph/timer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cpu/native/periph/timer.c b/cpu/native/periph/timer.c index 8bfc4dd0ee..d846563984 100644 --- a/cpu/native/periph/timer.c +++ b/cpu/native/periph/timer.c @@ -99,7 +99,6 @@ uint32_t timer_query_freqs(tim_t dev, uword_t index) int timer_init(tim_t dev, uint32_t freq, timer_cb_t cb, void *arg) { - (void)freq; DEBUG("%s\n", __func__); if (dev >= TIMER_NUMOF) { return -1; @@ -172,8 +171,6 @@ int timer_set_absolute(tim_t dev, int channel, unsigned int value) int timer_set_periodic(tim_t dev, int channel, unsigned int value, uint8_t flags) { - (void)flags; - if (channel != 0) { return -1; }