Patchwork rtc/pxa: patch for the unused variable removal

login
register
mail settings
Submitter Wan ZongShun
Date June 4, 2010, 8:35 a.m.
Message ID <4C08BAC9.1000501@gmail.com>
Download mbox | patch
Permalink /patch/54545/
State New
Headers show

Comments

Wan ZongShun - June 4, 2010, 8:35 a.m.
The variable 'rtc_alarm' of structure 'pxa_rtc' is unused
,so I make a patch to remove the unnecessary variable.

---
 drivers/rtc/rtc-pxa.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Wan ZongShun - June 4, 2010, 8:37 a.m.
Sorry.
Forget to add signed-off.

Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>

在 2010年6月4日 下午4:35,Wan ZongShun <mcuos.com@gmail.com> 写道:
> The variable 'rtc_alarm' of structure 'pxa_rtc' is unused
> ,so I make a patch to remove the unnecessary variable.
>
> ---
>  drivers/rtc/rtc-pxa.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c
> index e9c6fa0..b15375a 100644
> --- a/drivers/rtc/rtc-pxa.c
> +++ b/drivers/rtc/rtc-pxa.c
> @@ -87,7 +87,6 @@ struct pxa_rtc {
>        int                     irq_Alrm;
>        struct rtc_device       *rtc;
>        spinlock_t              lock;           /* Protects this structure */
> -       struct rtc_time         rtc_alarm;
>  };
>
>  static u32 ryxr_calc(struct rtc_time *tm)
> --
> 1.6.3.3
>

Patch

diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c
index e9c6fa0..b15375a 100644
--- a/drivers/rtc/rtc-pxa.c
+++ b/drivers/rtc/rtc-pxa.c
@@ -87,7 +87,6 @@  struct pxa_rtc {
 	int			irq_Alrm;
 	struct rtc_device	*rtc;
 	spinlock_t		lock;		/* Protects this structure */
-	struct rtc_time		rtc_alarm;
 };

 static u32 ryxr_calc(struct rtc_time *tm)