Skip to contentSkip to conversation

platform/x86: (sony-laptop): Remove unused variables

PATCH In review Guenter Roeck 2 participants 2 messages May 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: (sony-laptop): Remove unused variables

Remove unused variable 'handle' from functions sony_nc_get_brightness_ng() and sony_nc_update_status_ng().

This commit fixes the following build warnings:

drivers/platform/x86/sony-laptop.c: In function sony_nc_get_brightness_ng:
drivers/platform/x86/sony-laptop.c:964: warning: unused variable handle drivers/platform/x86/sony-laptop.c: In function sony_nc_update_status_ng:
drivers/platform/x86/sony-laptop.c:976: warning: unused variable handle

---
 drivers/platform/x86/sony-laptop.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/platform/x86/sony-laptop.c +0 -2
index 6fe8cd6..9a2c319 100644
@@ -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);
 
Signature · 1 line
1.7.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Guenter Roeck

Remove unused variable 'handle' from functions sony_nc_get_brightness_ng() and sony_nc_update_status_ng().

This commit fixes the following build warnings:

drivers/platform/x86/sony-laptop.c: In function sony_nc_get_brightness_ng:
drivers/platform/x86/sony-laptop.c:964: warning: unused variable handle drivers/platform/x86/sony-laptop.c: In function sony_nc_update_status_ng:
drivers/platform/x86/sony-laptop.c:976: warning: unused variable handle

Quoted 9 lines
---
 drivers/platform/x86/sony-laptop.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/platform/x86/sony-laptop.c +0 -0
index 6fe8cd6..9a2c319 100644

drivers/platform/x86/sony-laptop.c static int sony_backlight_get_brightness(struct backlight_device *bd) · line 965

Quoted 6 lines
drivers/platform/x86/sony-laptop.c +0 -1
@@ -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);

oh dear, thanks for catching it.

Signature · 2 lines
mattia
:wq!