All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: (wm831x-dcdc) Remove unused variables
@ 2011-05-26  6:58 Guenter Roeck
  2011-05-26  8:18 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2011-05-26  6:58 UTC (permalink / raw)
  To: Mark Brown, Ian Lartey, Dimitris Papastamos, Liam Girdwood
  Cc: linux-kernel, Guenter Roeck

Remove unused variable wm831x from functions wm831x_buckv_remove() and
wm831x_buckp_remove().

This commit fixes the following build warnings:

drivers/regulator/wm831x-dcdc.c: In function wm831x_buckv_remove:
rivers/regulator/wm831x-dcdc.c:603: warning: unused variable wm831x
drivers/regulator/wm831x-dcdc.c: In function wm831x_buckp_remove:
drivers/regulator/wm831x-dcdc.c:779: warning: unused variable wm831x

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 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] regulator: (wm831x-dcdc) Remove unused variables
  2011-05-26  6:58 [PATCH] regulator: (wm831x-dcdc) Remove unused variables Guenter Roeck
@ 2011-05-26  8:18 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-05-26  8:18 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Ian Lartey, Dimitris Papastamos, Liam Girdwood, linux-kernel

On Wed, May 25, 2011 at 11:58:11PM -0700, Guenter Roeck wrote:
> Remove unused variable wm831x from functions wm831x_buckv_remove() and
> wm831x_buckp_remove().

Liam this is the third time someone's sent a fix for this, including one
from me.  Can you please get this applied?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-27 12:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-26  6:58 [PATCH] regulator: (wm831x-dcdc) Remove unused variables Guenter Roeck
2011-05-26  8:18 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.