mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 17:43:51 +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)
|
int timer_init(tim_t dev, uint32_t freq, timer_cb_t cb, void *arg)
|
||||||
{
|
{
|
||||||
(void)freq;
|
|
||||||
DEBUG("%s\n", __func__);
|
DEBUG("%s\n", __func__);
|
||||||
if (dev >= TIMER_NUMOF) {
|
if (dev >= TIMER_NUMOF) {
|
||||||
return -1;
|
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)
|
int timer_set_periodic(tim_t dev, int channel, unsigned int value, uint8_t flags)
|
||||||
{
|
{
|
||||||
(void)flags;
|
|
||||||
|
|
||||||
if (channel != 0) {
|
if (channel != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user