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

Commit a890ae3b authored by Ashok Vuyyuru's avatar Ashok Vuyyuru
Browse files

msm: ipa3: Fix to use right casting to avoid the compilation issue



Caller function passing the constant value converting to int
pointer will cause the problem. Adding changes to use right casting
to avoid compilation issue.

Change-Id: I8440f16e4e53e0788c2d1eae35f4b6ebf3178ead
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent 92fa5bc4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ static struct ipahal_stats_init_pyld *ipahal_generate_init_pyld_flt_rt_v4_5(
	void *params, bool is_atomic_ctx)
{
	struct ipahal_stats_init_pyld *pyld;
	int num = *((int *)(params));
	int num = (uintptr_t)(params);

	if (num > IPA_MAX_FLT_RT_CNT_INDEX ||
		num <= 0) {