ARM: at91/ST: remove not needed casts
authorNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 20 Feb 2012 10:13:13 +0000 (11:13 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 23 Feb 2012 08:26:31 +0000 (09:26 +0100)
Remove the unnecessary (void) cast on at91_st_read()
return value.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Ryan Mallon <rmallon@gmail.com>
arch/arm/mach-at91/at91rm9200_time.c

index 0c1980c3608a928c6f2575602c8d7c9968200c74..dd7f782b0b91731202c3d8e10f02597b7d89518c 100644 (file)
@@ -111,7 +111,7 @@ clkevt32k_mode(enum clock_event_mode mode, struct clock_event_device *dev)
 {
        /* Disable and flush pending timer interrupts */
        at91_st_write(AT91_ST_IDR, AT91_ST_PITS | AT91_ST_ALMS);
-       (void) at91_st_read(AT91_ST_SR);
+       at91_st_read(AT91_ST_SR);
 
        last_crtr = read_CRTR();
        switch (mode) {
@@ -157,7 +157,7 @@ clkevt32k_next_event(unsigned long delta, struct clock_event_device *dev)
 
        /* Cancel any pending alarm; flush any pending IRQ */
        at91_st_write(AT91_ST_RTAR, alm);
-       (void) at91_st_read(AT91_ST_SR);
+       at91_st_read(AT91_ST_SR);
 
        /* Schedule alarm by writing RTAR. */
        alm += delta;
@@ -192,7 +192,7 @@ void __init at91rm9200_timer_init(void)
        /* Disable all timer interrupts, and clear any pending ones */
        at91_st_write(AT91_ST_IDR,
                AT91_ST_PITS | AT91_ST_WDOVF | AT91_ST_RTTINC | AT91_ST_ALMS);
-       (void) at91_st_read(AT91_ST_SR);
+       at91_st_read(AT91_ST_SR);
 
        /* Make IRQs happen for the system timer */
        setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq);