mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-16 19:35:33 +07:00
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:
parent
f9568eae92
commit
279c075dc1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user