All of lore.kernel.org
 help / color / mirror / Atom feed
* [rtc-linux] [PATCH 1/2] rtc: rtc-cmos: Remove unused variable
@ 2015-08-10 12:47 Fabio Estevam
  2015-08-10 12:47 ` [rtc-linux] [PATCH 2/2] rtc: rtc-ds1374: " Fabio Estevam
  2015-08-10 14:01 ` [rtc-linux] Re: [PATCH 1/2] rtc: rtc-cmos: " Alexandre Belloni
  0 siblings, 2 replies; 5+ messages in thread
From: Fabio Estevam @ 2015-08-10 12:47 UTC (permalink / raw)
  To: alexandre.belloni; +Cc: festevam, rtc-linux, Fabio Estevam

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

-- 
-- 
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.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rtc-linux] [PATCH 2/2] rtc: rtc-ds1374: Remove unused variable
  2015-08-10 12:47 [rtc-linux] [PATCH 1/2] rtc: rtc-cmos: Remove unused variable Fabio Estevam
@ 2015-08-10 12:47 ` Fabio Estevam
  2015-08-10 14:00   ` [rtc-linux] " Alexandre Belloni
  2015-09-05 11:24   ` Alexandre Belloni
  2015-08-10 14:01 ` [rtc-linux] Re: [PATCH 1/2] rtc: rtc-cmos: " Alexandre Belloni
  1 sibling, 2 replies; 5+ messages in thread
From: Fabio Estevam @ 2015-08-10 12:47 UTC (permalink / raw)
  To: alexandre.belloni; +Cc: festevam, rtc-linux, Fabio Estevam

Remove unused variable 'res' and fix the following build warning:

drivers/rtc/rtc-ds1374.c:667:6: warning: unused variable 'res' [-Wunused-variable]

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

diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c
index 7067232..3b3049c 100644
--- a/drivers/rtc/rtc-ds1374.c
+++ b/drivers/rtc/rtc-ds1374.c
@@ -664,8 +664,6 @@ static int ds1374_remove(struct i2c_client *client)
 {
 	struct ds1374 *ds1374 = i2c_get_clientdata(client);
 #ifdef CONFIG_RTC_DRV_DS1374_WDT
-	int res;
-
 	misc_deregister(&ds1374_miscdev);
 	ds1374_miscdev.parent = NULL;
 	unregister_reboot_notifier(&ds1374_wdt_notifier);
-- 
1.9.1

-- 
-- 
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.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rtc-linux] Re: [PATCH 2/2] rtc: rtc-ds1374: Remove unused variable
  2015-08-10 12:47 ` [rtc-linux] [PATCH 2/2] rtc: rtc-ds1374: " Fabio Estevam
@ 2015-08-10 14:00   ` Alexandre Belloni
  2015-09-05 11:24   ` Alexandre Belloni
  1 sibling, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2015-08-10 14:00 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Fabio Estevam; +Cc: festevam, rtc-linux

Greg,

Can you take this one or squash it in your misc_deregister patch?

Original is at: http://patchwork.ozlabs.org/patch/505614/

On 10/08/2015 at 09:47:45 -0300, Fabio Estevam wrote :
> Remove unused variable 'res' and fix the following build warning:
> 
> drivers/rtc/rtc-ds1374.c:667:6: warning: unused variable 'res' [-Wunused-variable]
> 
> Reported-by: Olof's autobuilder <build@lixom.net>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  drivers/rtc/rtc-ds1374.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c
> index 7067232..3b3049c 100644
> --- a/drivers/rtc/rtc-ds1374.c
> +++ b/drivers/rtc/rtc-ds1374.c
> @@ -664,8 +664,6 @@ static int ds1374_remove(struct i2c_client *client)
>  {
>  	struct ds1374 *ds1374 = i2c_get_clientdata(client);
>  #ifdef CONFIG_RTC_DRV_DS1374_WDT
> -	int res;
> -
>  	misc_deregister(&ds1374_miscdev);
>  	ds1374_miscdev.parent = NULL;
>  	unregister_reboot_notifier(&ds1374_wdt_notifier);
> -- 
> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [rtc-linux] Re: [PATCH 1/2] rtc: rtc-cmos: Remove unused variable
  2015-08-10 12:47 [rtc-linux] [PATCH 1/2] rtc: rtc-cmos: Remove unused variable Fabio Estevam
  2015-08-10 12:47 ` [rtc-linux] [PATCH 2/2] rtc: rtc-ds1374: " Fabio Estevam
@ 2015-08-10 14:01 ` Alexandre Belloni
  1 sibling, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2015-08-10 14:01 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: festevam, rtc-linux

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
> 

-- 
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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [rtc-linux] Re: [PATCH 2/2] rtc: rtc-ds1374: Remove unused variable
  2015-08-10 12:47 ` [rtc-linux] [PATCH 2/2] rtc: rtc-ds1374: " Fabio Estevam
  2015-08-10 14:00   ` [rtc-linux] " Alexandre Belloni
@ 2015-09-05 11:24   ` Alexandre Belloni
  1 sibling, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2015-09-05 11:24 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: festevam, rtc-linux

On 10/08/2015 at 09:47:45 -0300, Fabio Estevam wrote :
> Remove unused variable 'res' and fix the following build warning:
> 
> drivers/rtc/rtc-ds1374.c:667:6: warning: unused variable 'res' [-Wunused-variable]
> 
> Reported-by: Olof's autobuilder <build@lixom.net>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  drivers/rtc/rtc-ds1374.c | 2 --
>  1 file changed, 2 deletions(-)
> 
Applied, thanks.

-- 
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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-05 11:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10 12:47 [rtc-linux] [PATCH 1/2] rtc: rtc-cmos: Remove unused variable Fabio Estevam
2015-08-10 12:47 ` [rtc-linux] [PATCH 2/2] rtc: rtc-ds1374: " Fabio Estevam
2015-08-10 14:00   ` [rtc-linux] " Alexandre Belloni
2015-09-05 11:24   ` Alexandre Belloni
2015-08-10 14:01 ` [rtc-linux] Re: [PATCH 1/2] rtc: rtc-cmos: " Alexandre Belloni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.