Add some code clean up for hab driver, including removing
implicit type conversion, and etc.
Change-Id: Ic2910f48063e22d1708972c1e0a5d23cbf179874
Signed-off-by: Yong Ding <yongding@codeaurora.org>
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;
param.flags = flags;
ret = hab_mem_import(hab_driver.kctx, ¶m, 1);
- if (!IS_ERR(ret))
+ if (!ret)
*buff_shared = (void *)(uintptr_t)param.kva;
return ret;