gpoulios commented on code in PR #16356:
URL: https://github.com/apache/nuttx/pull/16356#discussion_r2083481142


##########
drivers/misc/optee.c:
##########
@@ -568,20 +628,7 @@ static int optee_to_msg_param(FAR struct optee_msg_param 
*mparams,
           case TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INPUT:
           case TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_OUTPUT:
           case TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT:
-            mp->attr = OPTEE_MSG_ATTR_TYPE_RMEM_INPUT + p->attr -
-                       TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INPUT;
-             if (p->c != TEE_MEMREF_NULL)
-              {
-                mp->u.rmem.shm_ref = p->c;
-              }
-            else
-              {
-                mp->u.rmem.shm_ref = 0;
-              }
-
-            mp->u.rmem.size = p->b;
-            mp->u.rmem.offs = p->a;
-            break;
+            return optee_memref_to_msg_param(priv, mp, p);

Review Comment:
   Silly mistake of mine



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to