From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.free-electrons.com (down.free-electrons.com. [37.187.137.238]) by gmr-mx.google.com with ESMTP id da3si741363wib.1.2015.07.04.11.42.17 for ; Sat, 04 Jul 2015 11:42:17 -0700 (PDT) Date: Sat, 4 Jul 2015 20:42:16 +0200 From: Alexandre Belloni To: Fabio Estevam Cc: gregory.clement@free-electrons.com, rtc-linux@googlegroups.com, Fabio Estevam Subject: [rtc-linux] Re: [PATCH] drivers/rtc/rtc-armada38x: Remove unused variable from armada38x_rtc_set_time() Message-ID: <20150704184216.GA5497@piout.net> References: <1436034454-10473-1-git-send-email-festevam@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <1436034454-10473-1-git-send-email-festevam@gmail.com> Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Hi Fabio, On 04/07/2015 at 15:27:34 -0300, Fabio Estevam wrote : > From: Fabio Estevam > > Remove the 'flags' variable in order to fix the following warning: > > drivers/rtc/rtc-armada38x.c:91:22: warning: unused variable 'flags' [-Wunused-variable] > Thank you but I'm pretty sure that one is fixed (that is the fourth patch to do so) ;) > Signed-off-by: Fabio Estevam > --- > drivers/rtc/rtc-armada38x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rtc/rtc-armada38x.c b/drivers/rtc/rtc-armada38x.c > index 4b62d1a..2b08cac 100644 > --- a/drivers/rtc/rtc-armada38x.c > +++ b/drivers/rtc/rtc-armada38x.c > @@ -88,7 +88,7 @@ static int armada38x_rtc_set_time(struct device *dev, struct rtc_time *tm) > { > struct armada38x_rtc *rtc = dev_get_drvdata(dev); > int ret = 0; > - unsigned long time, flags; > + unsigned long time; > > ret = rtc_tm_to_time(tm, &time); > > -- > 1.9.1 > -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.