From 0b181a79bdbc349954b52ddd4b6ab33562e0dcb0 Mon Sep 17 00:00:00 2001 From: Sachin Bhayare Date: Thu, 23 Mar 2017 16:24:24 +0530 Subject: msm: sde: Avoid use of uninitialized variable Initialize flush_bits to avoid setting incorrect flush bits. Change-Id: Ie654a86ba1fbce2e230760bc36441cb8b6887008 Signed-off-by: Sachin Bhayare --- drivers/media/platform/msm/sde/rotator/sde_rotator_r1_ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/media') diff --git a/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_ctl.c b/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_ctl.c index fef4a8585eaa..74f362839ccc 100644 --- a/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_ctl.c +++ b/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_ctl.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -133,7 +133,7 @@ struct sde_mdp_mixer *sde_mdp_mixer_get(struct sde_mdp_ctl *ctl, int mux) int sde_mdp_get_pipe_flush_bits(struct sde_mdp_pipe *pipe) { - u32 flush_bits; + u32 flush_bits = 0; if (pipe->type == SDE_MDP_PIPE_TYPE_DMA) flush_bits |= BIT(pipe->num) << 5; -- cgit v1.2.3