提交 f7b67642 编写于 作者: C Cai Huoqing 提交者: Jens Wiklander

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: NCai Huoqing <cai.huoqing@linux.dev>
Reviewed-by: NRijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: NJens Wiklander <jens.wiklander@linaro.org>
上级 26291c54
...@@ -122,7 +122,7 @@ static int amd_params_to_tee_params(struct tee_param *tee, u32 count, ...@@ -122,7 +122,7 @@ static int amd_params_to_tee_params(struct tee_param *tee, u32 count,
} }
static DEFINE_MUTEX(ta_refcount_mutex); 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) static u32 get_ta_refcount(u32 ta_handle)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册