From 84153ad1a5c4333a4bcc9c520191b7d9b52d2d6e Mon Sep 17 00:00:00 2001 From: Ouss4 Date: Mon, 13 Jan 2020 22:45:41 +0000 Subject: [PATCH] arch/mips/src/pic32mz/pic32mz-timer.c: Eliminate a warning found during testing. --- arch/mips/src/pic32mz/pic32mz-timer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/mips/src/pic32mz/pic32mz-timer.c b/arch/mips/src/pic32mz/pic32mz-timer.c index 0b216f4a97..c7c38d6bfd 100644 --- a/arch/mips/src/pic32mz/pic32mz-timer.c +++ b/arch/mips/src/pic32mz/pic32mz-timer.c @@ -974,7 +974,6 @@ static bool pic32mz_timer_setfreq(FAR struct pic32mz_timer_dev_s *dev, uint32_t freq) { uint16_t prescale; - uint32_t tmrfreq; DEBUGASSERT(dev != NULL); @@ -1046,9 +1045,7 @@ static bool pic32mz_timer_setfreq(FAR struct pic32mz_timer_dev_s *dev, return false; } - tmrfreq = pic32mz_timer_getfreq(dev); - - tmrinfo("Timer's frequency set to %luHz\n", tmrfreq); + tmrinfo("Timer's frequency set to %luHz\n", pic32mz_timer_getfreq(dev)); return true; }