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

Commit 6db4dca5 authored by Jeevan Shriram's avatar Jeevan Shriram
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>
Signed-off-by: default avatarJeevan Shriram <jshriram@codeaurora.org>
parent 377e49df
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -3687,7 +3687,7 @@ static inline int __init_clocks(struct venus_hfi_device *device)
static int __handle_reset_clk(struct msm_vidc_platform_resources *res,
static int __handle_reset_clk(struct msm_vidc_platform_resources *res,
			enum reset_state state)
			enum reset_state state)
{
{
	int rc = 0;
	int rc = 0, i;
	struct reset_control *rst;
	struct reset_control *rst;
	struct reset_set *rst_set = &res->reset_set;
	struct reset_set *rst_set = &res->reset_set;


@@ -3695,7 +3695,7 @@ static int __handle_reset_clk(struct msm_vidc_platform_resources *res,
		return 0;
		return 0;


	dprintk(VIDC_DBG, "%s reset_state %d\n", __func__, state);
	dprintk(VIDC_DBG, "%s reset_state %d\n", __func__, state);
	for (int i = 0; i < rst_set->count; i++) {
	for (i = 0; i < rst_set->count; i++) {
		rst = rst_set->reset_tbl[i].rst;
		rst = rst_set->reset_tbl[i].rst;
		switch (state) {
		switch (state) {
		case INIT:
		case INIT: