Skip to contentSkip to conversation

wm831x-backup: Remove unused variables

PATCH Applied Alan Cox 3 participants 3 messages Nov 17, 2009

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 wm831x-backup: Remove unused variables

---

 drivers/power/wm831x_backup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/power/wm831x_backup.c +1 -1
index f181076..bf4f387 100644
@@ -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)
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Alan Cox

Adding Anton since this is one for his tree.

Quoted 20 lines

---

 drivers/power/wm831x_backup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/power/wm831x_backup.c +1 -1
index f181076..bf4f387 100644
@@ -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)
#2 lore raw
Quoted 6 lines · Mark Brown
Quoted 1 line · Alan Cox

Adding Anton since this is one for his tree.

Applied, thanks.

Quoted 20 lines
Quoted 20 lines

---

 drivers/power/wm831x_backup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/power/wm831x_backup.c +1 -1
index f181076..bf4f387 100644
@@ -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)
Signature · 3 lines
Anton Vorontsov
email: [email protected]
irc://irc.freenode.net/bd2