mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
drivers: media: Fix -Wpointer-to-int-cast.
drivers/media/platform/msm/cvp/hfi_response_handler.c:507:36: warning: cast to smaller integer type 'unsigned int' from 'void *' [-Wvoid-pointer-to-int-cast]
inst = cvp_get_inst_from_id(core, (unsigned int)session_id);
^~~~~~~~~~~~~~~~~~~~~~~~
Change-Id: Iadb69f5ba617ce2c7410475bcd9bc024e3a40017
This commit is contained in:
parent
d32ea54b7d
commit
3447e16b78
1 changed files with 1 additions and 1 deletions
|
|
@ -504,7 +504,7 @@ static int hfi_process_session_cvp_msg(u32 device_id,
|
|||
}
|
||||
session_id = (void *)(uintptr_t)get_msg_session_id(pkt);
|
||||
core = list_first_entry(&cvp_driver->cores, struct msm_cvp_core, list);
|
||||
inst = cvp_get_inst_from_id(core, (unsigned int)session_id);
|
||||
inst = cvp_get_inst_from_id(core, (uintptr_t)session_id);
|
||||
|
||||
if (!inst) {
|
||||
dprintk(CVP_ERR, "%s: invalid session\n", __func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue