mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
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 <W_Armin@gmx.de>
This commit is contained in:
parent
7c8c522a73
commit
acbe7a8af3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user