mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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:
parent
92fa5bc4f6
commit
a890ae3b7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue