summaryrefslogtreecommitdiff
path: root/drivers/tee
diff options
context:
space:
mode:
authorCai Huoqing <cai.huoqing@linux.dev>2022-02-09 06:27:43 +0300
committerJens Wiklander <jens.wiklander@linaro.org>2022-02-14 12:57:55 +0300
commitf7b67642dd98617dc569836cdcba041c7ff00cbb (patch)
tree24cc2144db8301a0cab10f2a4474513b18772fa2 /drivers/tee
parent26291c54e111ff6ba87a164d85d4a4e134b7315c (diff)
downloadlinux-f7b67642dd98617dc569836cdcba041c7ff00cbb.tar.xz
tee: amdtee: Make use of the helper macro LIST_HEAD()
Replace "struct list_head head = LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code. Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev> Reviewed-by: Rijo Thomas <Rijo-john.Thomas@amd.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee')
-rw-r--r--drivers/tee/amdtee/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/amdtee/call.c b/drivers/tee/amdtee/call.c
index 07f36ac834c8..cec6e70f0ac9 100644
--- a/drivers/tee/amdtee/call.c
+++ b/drivers/tee/amdtee/call.c
@@ -122,7 +122,7 @@ static int amd_params_to_tee_params(struct tee_param *tee, u32 count,
}
static DEFINE_MUTEX(ta_refcount_mutex);
-static struct list_head ta_list = LIST_HEAD_INIT(ta_list);
+static LIST_HEAD(ta_list);
static u32 get_ta_refcount(u32 ta_handle)
{