diff mbox

[1/2] rtc: rtc-cmos: Remove unused variable

Message ID 1439210865-8611-1-git-send-email-fabio.estevam@freescale.com
State Not Applicable
Headers show

Commit Message

Fabio Estevam Aug. 10, 2015, 12:47 p.m. UTC
Remove unused variable 'err' and fix the following build warning:

 drivers/rtc/rtc-cmos.c:851:7: warning: unused variable 'err' [-Wunused-variable]

Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/rtc/rtc-cmos.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Alexandre Belloni Aug. 10, 2015, 2:01 p.m. UTC | #1
Hi Fabio,

Thanks for that patch but I fixed it in tree just a bit before you ;)

On 10/08/2015 at 09:47:44 -0300, Fabio Estevam wrote :
> Remove unused variable 'err' and fix the following build warning:
> 
>  drivers/rtc/rtc-cmos.c:851:7: warning: unused variable 'err' [-Wunused-variable]
> 
> Reported-by: Olof's autobuilder <build@lixom.net>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  drivers/rtc/rtc-cmos.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
> index 916bd1f..c2e90c6 100644
> --- a/drivers/rtc/rtc-cmos.c
> +++ b/drivers/rtc/rtc-cmos.c
> @@ -848,7 +848,6 @@ static int cmos_aie_poweroff(struct device *dev)
>  	 */
>  	if (cmos->alarm_expires == t_now + 1) {
>  		struct rtc_wkalrm alarm;
> -		int err;
>  
>  		/* Cancel the AIE timer by configuring the past time. */
>  		rtc_time64_to_tm(t_now - 1, &alarm.time);
> -- 
> 1.9.1
>
diff mbox

Patch

diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
index 916bd1f..c2e90c6 100644
--- a/drivers/rtc/rtc-cmos.c
+++ b/drivers/rtc/rtc-cmos.c
@@ -848,7 +848,6 @@  static int cmos_aie_poweroff(struct device *dev)
 	 */
 	if (cmos->alarm_expires == t_now + 1) {
 		struct rtc_wkalrm alarm;
-		int err;
 
 		/* Cancel the AIE timer by configuring the past time. */
 		rtc_time64_to_tm(t_now - 1, &alarm.time);