Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ad90a3c authored by Yong Ding's avatar Yong Ding
Browse files

soc: qcom: hab: add some code clean up



Add some code clean up for hab driver, including removing
implicit type conversion, and etc.

Change-Id: Ic2910f48063e22d1708972c1e0a5d23cbf179874
Signed-off-by: default avatarYong Ding <yongding@codeaurora.org>
parent cd4b6d85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -269,7 +269,7 @@ long habmem_imp_hyp_map(void *imp_ctx,
		uint32_t userflags)
{
	struct page **pages;
	struct compressed_pfns *pfn_table = impdata;
	struct compressed_pfns *pfn_table = (struct compressed_pfns *)impdata;
	struct pages_list *pglist;
	struct importer_context *priv = imp_ctx;
	unsigned long pfn;
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ int32_t habmm_import(int32_t handle, void **buff_shared, uint32_t size_bytes,
	param.flags = flags;

	ret = hab_mem_import(hab_driver.kctx, &param, 1);
	if (!IS_ERR(ret))
	if (!ret)
		*buff_shared = (void *)(uintptr_t)param.kva;

	return ret;