mem-buf: Update return codes for mem_buf_assign/unassign_mem_gunyah

Update return codes for mem_buf_assign/unassign_mem_gunyah to zero,
so that mem_buf_assign_mem and mem_buf_unassign_mem don't fail when
gunyah configs aren't enabled on non-gunyah devices.

Change-Id: I3aecdf8c886fd1799a2d92dd1cc27acfa8434486
Signed-off-by: Vijayanand Jitta <quic_vjitta@quicinc.com>
This commit is contained in:
Vijayanand Jitta 2022-09-20 08:50:16 +05:30 committed by Chris Goldsworthy
parent 2556e218d4
commit 01e2cbc573

View File

@ -94,12 +94,12 @@ static inline struct gh_sgl_desc *dup_gh_sgl_desc(struct gh_sgl_desc *sgl_desc)
static inline int mem_buf_assign_mem_gunyah(u32 op, struct sg_table *sgt,
struct mem_buf_lend_kernel_arg *arg)
{
return -EINVAL;
return 0;
}
static inline int mem_buf_unassign_mem_gunyah(gh_memparcel_handle_t memparcel_hdl)
{
return -EINVAL;
return 0;
}
#endif
#endif