From: Alan Jenkins Date: Thu, 3 Dec 2009 07:45:01 +0000 (+0000) Subject: eeepc-laptop: no need to check argument of set_brightness() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=951037ea1cf4dc323906fd45d55ff015fd295d0c;p=linux-beck.git eeepc-laptop: no need to check argument of set_brightness() We already tell the backlight class our maximum brightness value; it will validate the user requested values for us. Signed-off-by: Alan Jenkins Signed-off-by: Len Brown --- diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index f6b7796b24ca..9f33e5178d6c 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -326,7 +326,6 @@ static int read_brightness(struct backlight_device *bd) static int set_brightness(struct backlight_device *bd, int value) { - value = max(0, min(15, value)); return set_acpi(CM_ASL_PANELBRIGHT, value); }