|
@@ -486,7 +486,7 @@ static int hfi_process_session_cvp_msg(u32 device_id,
|
|
|
struct cvp_session_msg *sess_msg;
|
|
|
struct msm_cvp_inst *inst = NULL;
|
|
|
struct msm_cvp_core *core;
|
|
|
- void *session_id;
|
|
|
+ unsigned int session_id;
|
|
|
struct cvp_session_queue *sq;
|
|
|
|
|
|
if (!pkt) {
|
|
@@ -496,9 +496,9 @@ static int hfi_process_session_cvp_msg(u32 device_id,
|
|
|
dprintk(CVP_ERR, "%s: bad_pkt_size %d\n", __func__, pkt->size);
|
|
|
return -E2BIG;
|
|
|
}
|
|
|
- session_id = (void *)(uintptr_t)get_msg_session_id(pkt);
|
|
|
+ session_id = 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, session_id);
|
|
|
|
|
|
if (!inst) {
|
|
|
dprintk(CVP_ERR, "%s: invalid session\n", __func__);
|