提交 279c075d 编写于 作者: R Rijo Thomas 提交者: Herbert Xu

tee: amdtee: remove redundant NULL check for pool

Remove NULL check for pool variable, since in the current
code path it is guaranteed to be non-NULL.
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NRijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 f9568eae
......@@ -484,8 +484,7 @@ static int __init amdtee_driver_init(void)
tee_device_unregister(amdtee->teedev);
err_free_pool:
if (pool)
tee_shm_pool_free(pool);
tee_shm_pool_free(pool);
err_kfree_amdtee:
kfree(amdtee);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册