summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/z180/z180_timerisr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z80/src/z180/z180_timerisr.c')
-rw-r--r--nuttx/arch/z80/src/z180/z180_timerisr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/nuttx/arch/z80/src/z180/z180_timerisr.c b/nuttx/arch/z80/src/z180/z180_timerisr.c
index 35d21c5a0..253fd4327 100644
--- a/nuttx/arch/z80/src/z180/z180_timerisr.c
+++ b/nuttx/arch/z80/src/z180/z180_timerisr.c
@@ -94,16 +94,14 @@
int up_timerisr(int irq, chipreg_t *regs)
{
- volatile uint8_t regval;
-
/* "When TMDR0 decrements to 0, TIF0 is set to 1. This generates an interrupt
* request if enabled by TIE0 = 1. TIF0 is reset to 0 when TCR is read and
* the higher or lower byte of TMDR0 is read."
*/
- regval = inp(Z180_PRT_TCR);
- regval = inp(Z180_PRT0_DRL);
- regval = inp(Z180_PRT0_DRH);
+ (void)inp(Z180_PRT_TCR);
+ (void)inp(Z180_PRT0_DRL);
+ (void)inp(Z180_PRT0_DRH);
/* Process timer interrupt */