platform/x86:delete two unused variables
authorWeiping Pan <panweiping3@gmail.com>
Mon, 16 May 2011 06:49:47 +0000 (14:49 +0800)
committerMatthew Garrett <mjg@redhat.com>
Fri, 27 May 2011 16:38:25 +0000 (12:38 -0400)
variable handle is not used in these two functions,
just delete them.

Signed-off-by: Weiping Pan <panweiping3@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/sony-laptop.c

index 12dd0a62f305656707189cb44ae4fbe0a6ef3d09..bbd182e178cb65682b7ed47684467184da4c9a03 100644 (file)
@@ -962,7 +962,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);
 
@@ -974,7 +973,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);