mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 07:30:16 +00:00
ARM: at91/ST: remove not needed casts
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>
This commit is contained in:
parent
5e9cf5e18d
commit
9e1c0b2ee8
@ -111,7 +111,7 @@ clkevt32k_mode(enum clock_event_mode mode, struct clock_event_device *dev)
|
|||||||
{
|
{
|
||||||
/* Disable and flush pending timer interrupts */
|
/* Disable and flush pending timer interrupts */
|
||||||
at91_st_write(AT91_ST_IDR, AT91_ST_PITS | AT91_ST_ALMS);
|
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();
|
last_crtr = read_CRTR();
|
||||||
switch (mode) {
|
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 */
|
/* Cancel any pending alarm; flush any pending IRQ */
|
||||||
at91_st_write(AT91_ST_RTAR, alm);
|
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. */
|
/* Schedule alarm by writing RTAR. */
|
||||||
alm += delta;
|
alm += delta;
|
||||||
@ -192,7 +192,7 @@ void __init at91rm9200_timer_init(void)
|
|||||||
/* Disable all timer interrupts, and clear any pending ones */
|
/* Disable all timer interrupts, and clear any pending ones */
|
||||||
at91_st_write(AT91_ST_IDR,
|
at91_st_write(AT91_ST_IDR,
|
||||||
AT91_ST_PITS | AT91_ST_WDOVF | AT91_ST_RTTINC | AT91_ST_ALMS);
|
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 */
|
/* Make IRQs happen for the system timer */
|
||||||
setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq);
|
setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user