2011-04-07 09:01:06

by Liu Yuan

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Liu Yuan <[email protected]>
---
drivers/regulator/wm831x-dcdc.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c
index e93453b..a0982e8 100644
--- a/drivers/regulator/wm831x-dcdc.c
+++ b/drivers/regulator/wm831x-dcdc.c
@@ -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);

--
1.7.1


2011-04-07 10:26:57

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] drivers, regulator: Remove unused variable 'wm831x'

On Thu, Apr 07, 2011 at 05:00:54PM +0800, Liu Yuan wrote:
> 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.

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

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