linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sony-laptop: remove unused local variables
@ 2011-06-03  2:27 Greg Dietsche
  2011-06-03  2:46 ` Greg Dietsche
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Dietsche @ 2011-06-03  2:27 UTC (permalink / raw)
  To: malattia
  Cc: mjg, kernel-janitors, platform-driver-x86, linux-kernel, Greg Dietsche

Removed two unused instances of "handle" local variable.

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
---
 drivers/platform/x86/sony-laptop.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
index 6fe8cd6..9a2c319 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -961,7 +961,6 @@ static int sony_backlight_get_brightness(struct backlight_device *bd)
 static int sony_nc_get_brightness_ng(struct backlight_device *bd)
 {
 	int result;
-	int *handle = (int *)bl_get_data(bd);
 	struct sony_backlight_props *sdev =
 		(struct sony_backlight_props *)bl_get_data(bd);
 
@@ -973,7 +972,6 @@ static int sony_nc_get_brightness_ng(struct backlight_device *bd)
 static int sony_nc_update_status_ng(struct backlight_device *bd)
 {
 	int value, result;
-	int *handle = (int *)bl_get_data(bd);
 	struct sony_backlight_props *sdev =
 		(struct sony_backlight_props *)bl_get_data(bd);
 
-- 
1.7.2.5


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

* Re: [PATCH] sony-laptop: remove unused local variables
  2011-06-03  2:27 [PATCH] sony-laptop: remove unused local variables Greg Dietsche
@ 2011-06-03  2:46 ` Greg Dietsche
  2011-06-04  5:54   ` Mattia Dongili
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Dietsche @ 2011-06-03  2:46 UTC (permalink / raw)
  To: Greg Dietsche
  Cc: malattia, mjg, kernel-janitors, platform-driver-x86, linux-kernel

please disregard... i neglected to rebase before sending. this patch no 
longer applies to the mainline.

Greg

On 06/02/2011 09:27 PM, Greg Dietsche wrote:
> Removed two unused instances of "handle" local variable.
>
> Signed-off-by: Greg Dietsche<Gregory.Dietsche@cuw.edu>
> ---
>   drivers/platform/x86/sony-laptop.c |    2 --
>   1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
> index 6fe8cd6..9a2c319 100644
> --- a/drivers/platform/x86/sony-laptop.c
> +++ b/drivers/platform/x86/sony-laptop.c
> @@ -961,7 +961,6 @@ static int sony_backlight_get_brightness(struct backlight_device *bd)
>   static int sony_nc_get_brightness_ng(struct backlight_device *bd)
>   {
>   	int result;
> -	int *handle = (int *)bl_get_data(bd);
>   	struct sony_backlight_props *sdev =
>   		(struct sony_backlight_props *)bl_get_data(bd);
>
> @@ -973,7 +972,6 @@ static int sony_nc_get_brightness_ng(struct backlight_device *bd)
>   static int sony_nc_update_status_ng(struct backlight_device *bd)
>   {
>   	int value, result;
> -	int *handle = (int *)bl_get_data(bd);
>   	struct sony_backlight_props *sdev =
>   		(struct sony_backlight_props *)bl_get_data(bd);
>
>    

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

* Re: [PATCH] sony-laptop: remove unused local variables
  2011-06-03  2:46 ` Greg Dietsche
@ 2011-06-04  5:54   ` Mattia Dongili
  0 siblings, 0 replies; 3+ messages in thread
From: Mattia Dongili @ 2011-06-04  5:54 UTC (permalink / raw)
  To: Greg Dietsche; +Cc: mjg, kernel-janitors, platform-driver-x86, linux-kernel

On Thu, Jun 02, 2011 at 09:46:00PM -0500, Greg Dietsche wrote:
> please disregard... i neglected to rebase before sending. this patch
> no longer applies to the mainline.

the same patch was also already sent by Guenter Roeck a few days ago:
http://www.spinics.net/lists/platform-driver-x86/msg02018.html

thanks
-- 
mattia
:wq!

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

end of thread, other threads:[~2011-06-04  5:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03  2:27 [PATCH] sony-laptop: remove unused local variables Greg Dietsche
2011-06-03  2:46 ` Greg Dietsche
2011-06-04  5:54   ` Mattia Dongili

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).