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

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

Merge "soc: qcom: cx_ipeak: Remove iterator declaration in for loop"

parents 4e93c8cb 4dfc9ad2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2019, 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
@@ -124,8 +124,9 @@ static struct cx_ipeak_client *cx_ipeak_register_v2(int client_id)
	struct cx_ipeak_client *client;
	unsigned int client_offset = 0;
	void __iomem *vptr = device_ipeak.tcsr_vptr;
	int i;

	for (int i = 0; i <= client_id; i++)
	for (i = 0; i <= client_id; i++)
		client_offset += CXIP_CLIENT_OFFSET;

	reg_enable = readl_relaxed(device_ipeak.tcsr_vptr +