diff --git a/drivers/tee/amdtee/core.c b/drivers/tee/amdtee/core.c index 45402844b669003e2bd91657716cfda215fdad7c..be8937eb5d43fd05c2e82ab98e4eb73479b31432 100644 --- a/drivers/tee/amdtee/core.c +++ b/drivers/tee/amdtee/core.c @@ -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);