2009-11-17 16:01:07

by Alan

[permalink] [raw]
Subject: [PATCH] wm831x-backup: Remove unused variables

Signed-off-by: Alan Cox <[email protected]>
---

drivers/power/wm831x_backup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/drivers/power/wm831x_backup.c b/drivers/power/wm831x_backup.c
index f181076..bf4f387 100644
--- a/drivers/power/wm831x_backup.c
+++ b/drivers/power/wm831x_backup.c
@@ -164,7 +164,7 @@ static __devinit int wm831x_backup_probe(struct platform_device *pdev)
struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
struct wm831x_backup *devdata;
struct power_supply *backup;
- int ret, irq, i;
+ int ret;

devdata = kzalloc(sizeof(struct wm831x_backup), GFP_KERNEL);
if (devdata == NULL)


2009-11-17 16:06:14

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] wm831x-backup: Remove unused variables

On Tue, Nov 17, 2009 at 03:44:54PM +0000, Alan Cox wrote:
> Signed-off-by: Alan Cox <[email protected]>

Acked-by: Mark Brown <[email protected]>

Adding Anton since this is one for his tree.

> ---
>
> drivers/power/wm831x_backup.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
>
> diff --git a/drivers/power/wm831x_backup.c b/drivers/power/wm831x_backup.c
> index f181076..bf4f387 100644
> --- a/drivers/power/wm831x_backup.c
> +++ b/drivers/power/wm831x_backup.c
> @@ -164,7 +164,7 @@ static __devinit int wm831x_backup_probe(struct platform_device *pdev)
> struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
> struct wm831x_backup *devdata;
> struct power_supply *backup;
> - int ret, irq, i;
> + int ret;
>
> devdata = kzalloc(sizeof(struct wm831x_backup), GFP_KERNEL);
> if (devdata == NULL)
>

2009-11-17 16:18:47

by Anton Vorontsov

[permalink] [raw]
Subject: Re: [PATCH] wm831x-backup: Remove unused variables

On Tue, Nov 17, 2009 at 04:06:17PM +0000, Mark Brown wrote:
> On Tue, Nov 17, 2009 at 03:44:54PM +0000, Alan Cox wrote:
> > Signed-off-by: Alan Cox <[email protected]>
>
> Acked-by: Mark Brown <[email protected]>
>
> Adding Anton since this is one for his tree.

Applied, thanks.

> > ---
> >
> > drivers/power/wm831x_backup.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> >
> > diff --git a/drivers/power/wm831x_backup.c b/drivers/power/wm831x_backup.c
> > index f181076..bf4f387 100644
> > --- a/drivers/power/wm831x_backup.c
> > +++ b/drivers/power/wm831x_backup.c
> > @@ -164,7 +164,7 @@ static __devinit int wm831x_backup_probe(struct platform_device *pdev)
> > struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
> > struct wm831x_backup *devdata;
> > struct power_supply *backup;
> > - int ret, irq, i;
> > + int ret;
> >
> > devdata = kzalloc(sizeof(struct wm831x_backup), GFP_KERNEL);
> > if (devdata == NULL)
> >

--
Anton Vorontsov
email: [email protected]
irc://irc.freenode.net/bd2