Browse Source

msm: eva: Fix a compiler error of typecasting

Fix session id type casting issue

Change-Id: Ic7a61a38cbb2bd884c10e4b58a579357ce444ee1
Signed-off-by: George Shen <[email protected]>
George Shen 4 years ago
parent
commit
d0e7cd2a50
1 changed files with 3 additions and 3 deletions
  1. 3 3
      msm/eva/hfi_response_handler.c

+ 3 - 3
msm/eva/hfi_response_handler.c

@@ -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__);