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

Commit 5f24c489 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Declare variable outside the loop"

parents b55100db 51e9028f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line 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,
static int __handle_reset_clk(struct msm_vidc_platform_resources *res,
			enum reset_state state)
			enum reset_state state)
{
{
	int rc = 0;
	int i, rc = 0;
	struct reset_control *rst;
	struct reset_control *rst;
	struct reset_set *rst_set = &res->reset_set;
	struct reset_set *rst_set = &res->reset_set;


	if (!rst_set->reset_tbl)
	if (!rst_set->reset_tbl)
		return 0;
		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;
		rst = rst_set->reset_tbl[i].rst;
		switch (state) {
		switch (state) {
		case INIT:
		case INIT: