Commit 279c075d authored by Rijo Thomas's avatar Rijo Thomas Committed by 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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f9568eae
...@@ -484,7 +484,6 @@ static int __init amdtee_driver_init(void) ...@@ -484,7 +484,6 @@ static int __init amdtee_driver_init(void)
tee_device_unregister(amdtee->teedev); tee_device_unregister(amdtee->teedev);
err_free_pool: err_free_pool:
if (pool)
tee_shm_pool_free(pool); tee_shm_pool_free(pool);
err_kfree_amdtee: err_kfree_amdtee:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment