mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00: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 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user