OP-TEE: fix IS_ERR_VALUE compilation error

Fix the compilation error below:
error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]

Change-Id: Ib7cbc813c6eeeded220171ef5e4434ad798d06d9
Signed-off-by: Elon Zhang <zhangzj@rock-chips.com>
This commit is contained in:
Elon Zhang
2019-06-25 11:53:06 +08:00
parent 9dd42792b1
commit 1b75213d7f

View File

@@ -117,7 +117,7 @@ struct tee_shm *rk_tee_shm_alloc(struct tee *tee, size_t size, uint32_t flags)
ret = sg_alloc_table_from_pages(&shm->sgt, &page,
nr_pages, 0, nr_pages * PAGE_SIZE, GFP_KERNEL);
if (IS_ERR_VALUE(ret)) {
if (ret < 0) {
dev_err(_DEV(tee), "%s: sg_alloc_table_from_pages() failed\n",
__func__);
tee->ops->free(shm);