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: Ashok Vuyyuru <avuyyuru@codeaurora.org>
This commit is contained in:
Ashok Vuyyuru 2021-06-05 00:37:20 +05:30
commit a890ae3b7b

View file

@ -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) {