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

Commit 51e9028f authored by Vikash Garodia's avatar Vikash Garodia
Browse files

msm: vidc: Declare variable outside the loop



GCC does not allow variable declarations in for
loop initializers. The change fixes the same.

Change-Id: Idc1731448a246f0de7b11382105b86a06bb6eec9
Signed-off-by: default avatarVikash Garodia <vgarodia@codeaurora.org>
parent 8f24df85
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3868,14 +3868,14 @@ static inline int __init_clocks(struct venus_hfi_device *device)
static int __handle_reset_clk(struct msm_vidc_platform_resources *res,
			enum reset_state state)
{
	int rc = 0;
	int i, rc = 0;
	struct reset_control *rst;
	struct reset_set *rst_set = &res->reset_set;

	if (!rst_set->reset_tbl)
		return 0;

	for (int i = 0; i < rst_set->count; i++) {
	for (i = 0; i < rst_set->count; i++) {
		rst = rst_set->reset_tbl[i].rst;
		switch (state) {
		case INIT: