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

Commit e637cec8 authored by Anant Goel's avatar Anant Goel
Browse files

msm: vidc: Declare rotation as an integer



The variable, rotation, is declared as a boolean and
then compared against a constant value. This causes a
kernel warning in a GCC environment. This patch declares
the variable, rotation, as an integer to address the warning.

Change-Id: Ie877ac2279e3a70a99aec1281dea4421fa435329
Signed-off-by: default avatarAnant Goel <anantg@codeaurora.org>
parent 00b70489
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2020, 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
@@ -608,9 +608,9 @@ static unsigned long __calculate_encoder(struct vidc_bus_vote_data *d,
	/* Encoder Parameters */
	int width, height, fps, lcu_size, bitrate, lcu_per_frame,
		collocated_bytes_per_lcu, tnbr_per_lcu, dpb_bpp,
		original_color_format, vertical_tile_width;
		original_color_format, vertical_tile_width, rotation;
	bool work_mode_1, original_compression_enabled,
		low_power, rotation, cropping_or_scaling,
		low_power, cropping_or_scaling,
		b_frames_enabled = false,
		llc_ref_chroma_cache_enabled = false,
		llc_top_line_buf_enabled = false,