summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorStepan Moskovchenko <stepanm@codeaurora.org>2014-06-13 19:12:25 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:30:53 -0700
commitd46bb668a79a0e5a98341d038a408396e1d3945f (patch)
tree38d9b83eb595b561b266f5e53d94d698897b28a9 /drivers/video/fbdev
parent5a63e87dd8c9f821bf31b981b26840e0ccf0a0a1 (diff)
drivers: msm: Fix a handful of compiler warnings
Compiling the kernel with the -O2 GCC flag reveals a number of warnings relating to potentially uninitialized variables and other edge cases. Change-Id: I3758dbe1af276d79f55188b9f2db850c730acb80 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_compat_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_compat_utils.c b/drivers/video/fbdev/msm/mdss_compat_utils.c
index 4c35f799d128..0a01751f4b96 100644
--- a/drivers/video/fbdev/msm/mdss_compat_utils.c
+++ b/drivers/video/fbdev/msm/mdss_compat_utils.c
@@ -785,7 +785,7 @@ static int __from_user_lut_cfg_data(
struct mdp_lut_cfg_data __user *lut_cfg)
{
uint32_t lut_type;
- int ret;
+ int ret = 0;
if (copy_from_user(&lut_type, &lut_cfg32->lut_type,
sizeof(uint32_t)))