summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-11-23 21:02:51 +0800
committerMatthew Garrett <matthew.garrett@nebula.com>2014-01-21 08:43:54 -0500
commit7da8fb27eff04e7283d24b0e483c300c8b1a9f5c (patch)
tree65cbd66f5016f9b89c464bf266e2b9613722db8c
parentec513b16c480c6cdda1e3d597e611eafca05227b (diff)
downloadlinux-7da8fb27eff04e7283d24b0e483c300c8b1a9f5c.tar.bz2
dell-laptop: fix to return error code in dell_send_intensity()
Fix to return error code instead always return 0 from function dell_send_intensity(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
-rw-r--r--drivers/platform/x86/dell-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index c608b1d33f4a..9d7d6a02ae07 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -684,7 +684,7 @@ static int dell_send_intensity(struct backlight_device *bd)
out:
release_buffer();
- return 0;
+ return ret;
}
static int dell_get_intensity(struct backlight_device *bd)