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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Rijo Thomas 2020-01-09 18:23:22 +05:30 committed by Herbert Xu
parent f9568eae92
commit 279c075dc1

View File

@ -484,8 +484,7 @@ err_device_unregister:
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);