Skip to contentSkip to conversation

drivers, regulator: Remove unused variable 'wm831x'

PATCH Superseded Liu Yuan 2 participants 2 messages Apr 7, 2011

Subsystems (2)
lore
Share & tools
lore

Liu Yuan

author
#0 lore raw

PATCH 1/1 drivers, regulator: Remove unused variable 'wm831x'

From: Liu Yuan <[email protected]>

Variable ‘wm831x’ is not used in the function of wm831x_buckv_remove() and wm831x_buckp_remove().This patch removes 'em.

---
 drivers/regulator/wm831x-dcdc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/regulator/wm831x-dcdc.c +0 -2
index e93453b..a0982e8 100644
@@ -600,7 +600,6 @@ err:
 static __devexit int wm831x_buckv_remove(struct platform_device *pdev)
 {
 	struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev);
-	struct wm831x *wm831x = dcdc->wm831x;
 
 	platform_set_drvdata(pdev, NULL);
 
@@ -776,7 +775,6 @@ err:
 static __devexit int wm831x_buckp_remove(struct platform_device *pdev)
 {
 	struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev);
-	struct wm831x *wm831x = dcdc->wm831x;
 
 	platform_set_drvdata(pdev, NULL);
 
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Liu Yuan

From: Liu Yuan <[email protected]>

Variable ‘wm831x’ is not used in the function of wm831x_buckv_remove() and wm831x_buckp_remove().This patch removes 'em.

though I did send a patch for this it looks like it's been dropped somewhere :/