aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <[email protected]>2010-05-19 12:37:01 +0200
committerMatthew Garrett <[email protected]>2010-05-20 09:46:24 -0400
commitb7670ed6509f322713bbd96eed0301c322f2ae02 (patch)
tree18748617aed63cef84013a6cd81e9576f84784a3
parenta929aae0e0a91d89b60774316ede6c1e2e10dc4e (diff)
drivers/platform/x86/eeepc-wmi.c: fix build warning
drivers/platform/x86/eeepc-wmi.c: In function ‘eeepc_wmi_notify’: drivers/platform/x86/eeepc-wmi.c:209: warning: ‘new’ may be used uninitialized in this function drivers/platform/x86/eeepc-wmi.c:209: note: ‘new’ was declared here Signed-off-by: Daniel Mack <[email protected]> Cc: Matthew Garrett <[email protected]> Cc: Yong Wang <[email protected]> Cc: Corentin Chary <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: Tejun Heo <[email protected]> Cc: [email protected] Acked-By: Corentin Chary <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>
-rw-r--r--drivers/platform/x86/eeepc-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/eeepc-wmi.c b/drivers/platform/x86/eeepc-wmi.c
index b227eb469f49..9dc50fbf3d0b 100644
--- a/drivers/platform/x86/eeepc-wmi.c
+++ b/drivers/platform/x86/eeepc-wmi.c
@@ -206,7 +206,7 @@ static int eeepc_wmi_backlight_notify(struct eeepc_wmi *eeepc, int code)
{
struct backlight_device *bd = eeepc->backlight_device;
int old = bd->props.brightness;
- int new;
+ int new = old;
if (code >= NOTIFY_BRNUP_MIN && code <= NOTIFY_BRNUP_MAX)
new = code - NOTIFY_BRNUP_MIN + 1;