Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b181a79 authored by Sachin Bhayare's avatar Sachin Bhayare Committed by Gerrit - the friendly Code Review server
Browse files

msm: sde: Avoid use of uninitialized variable



Initialize flush_bits to avoid setting incorrect flush bits.

Change-Id: Ie654a86ba1fbce2e230760bc36441cb8b6887008
Signed-off-by: default avatarSachin Bhayare <sachin.bhayare@codeaurora.org>
parent 28e87e96
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* 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;