Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756519Ab2BWObG (ORCPT ); Thu, 23 Feb 2012 09:31:06 -0500 Received: from newsmtp5.atmel.com ([204.2.163.5]:24870 "EHLO sjogate2.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756093Ab2BWO01 (ORCPT ); Thu, 23 Feb 2012 09:26:27 -0500 From: Nicolas Ferre To: plagnioj@jcrosoft.com, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, rmallon@gmail.com, linux@arm.linux.org.uk, arnd@arndb.de, Nicolas Ferre Subject: [PATCH v3 05/21] ARM: at91/ST: remove not needed casts Date: Thu, 23 Feb 2012 15:25:49 +0100 Message-Id: <9e1c0b2ee8ae69dd4b35187ffbfb749272db3e00.1330006537.git.nicolas.ferre@atmel.com> X-Mailer: git-send-email 1.7.9 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1740 Lines: 48 Remove the unnecessary (void) cast on at91_st_read() return value. Signed-off-by: Nicolas Ferre Acked-by: Ryan Mallon --- arch/arm/mach-at91/at91rm9200_time.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c index 0c1980c..dd7f782 100644 --- a/arch/arm/mach-at91/at91rm9200_time.c +++ b/arch/arm/mach-at91/at91rm9200_time.c @@ -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); -- 1.7.9 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/