* [PATCH] drivers, regulator: Remove unused variable 'wm831x'
@ 2011-04-07 9:00 Liu Yuan
2011-04-07 10:26 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Liu Yuan @ 2011-04-07 9:00 UTC (permalink / raw)
To: Mark Brown, Ian Lartey, Dimitris Papastamos; +Cc: open list
From: Liu Yuan <tailai.ly@taobao.com>
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 <tailai.ly@taobao.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers, regulator: Remove unused variable 'wm831x'
2011-04-07 9:00 [PATCH] drivers, regulator: Remove unused variable 'wm831x' Liu Yuan
@ 2011-04-07 10:26 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-04-07 10:26 UTC (permalink / raw)
To: Liu Yuan; +Cc: Ian Lartey, Dimitris Papastamos, open list
On Thu, Apr 07, 2011 at 05:00:54PM +0800, Liu Yuan wrote:
> From: Liu Yuan <tailai.ly@taobao.com>
>
> Variable ‘wm831x’ is not used in the function of
> wm831x_buckv_remove() and wm831x_buckp_remove().This
> patch removes 'em.
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
though I did send a patch for this it looks like it's been dropped
somewhere :/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-07 10:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-07 9:00 [PATCH] drivers, regulator: Remove unused variable 'wm831x' Liu Yuan
2011-04-07 10:26 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).